From 7cd93038da3ff82e2e940223de218d7d4f964638 Mon Sep 17 00:00:00 2001 From: BuggyAl Date: Tue, 30 Jun 2026 13:49:04 -0500 Subject: [PATCH 1/3] Fix typo in permissions error message --- Extensions/MSGraph.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extensions/MSGraph.psm1 b/Extensions/MSGraph.psm1 index 50c20ad..d2d34db 100644 --- a/Extensions/MSGraph.psm1 +++ b/Extensions/MSGraph.psm1 @@ -886,7 +886,7 @@ function Show-GraphObjects { $requiredPermissions = "" } - $global:txtNotLoggedIn.Content = "You don't have the required permissons to access $($global:curObjectType.Title).$($requiredPermissions)`n`Missing perimssons: $missingScopes`n`nRequest consent from the 'Request Consent' link in the user login info`nor`nDisable the 'Use Default Permissions' setting to trigger consent prompt.`nNote: Changing the 'Use Default Permissions' setting will require a restart of the app`nand a 'manual' login" + $global:txtNotLoggedIn.Content = "You don't have the required permissions to access $($global:curObjectType.Title).$($requiredPermissions)`n`Missing permissions: $missingScopes`n`nRequest consent from the 'Request Consent' link in the user login info`nor`nDisable the 'Use Default Permissions' setting to trigger consent prompt.`nNote: Changing the 'Use Default Permissions' setting will require a restart of the app`nand a 'manual' login" $global:grdNotLoggedIn.Visibility = "Visible" $global:grdData.Visibility = "Collapsed" return @@ -4898,4 +4898,4 @@ function ConvertTo-JsonSortedGraph { ) $sorted = Invoke-SortJsonGraphObject $InputObject return $sorted | ConvertTo-Json -Depth $Depth -} \ No newline at end of file +} From 51e5966fa7b47046e9ccfaa985a2f3882b3285ff Mon Sep 17 00:00:00 2001 From: McKenzieCo <149072684+McKenzieCo@users.noreply.github.com> Date: Tue, 21 Jul 2026 17:15:07 -0400 Subject: [PATCH 2/3] Fix silent bulk compare crash: op_Addition on PSObject In Start-BulkCompareExportObjects the flat CSV row was built with '$compValue +=' where $compValue is a single PSCustomObject element of the result array. PowerShell has no op_Addition for PSObject, so every silent batch compare using the 'Exported Files with Intune Objects (Id)' provider threw 'Method invocation failed because [PSObject] does not contain a method named op_Addition' before Save-BulkCompareResults ran, and no CSV was produced. All other compare providers assign the row object directly; this aligns the export provider with them. Verified against a live tenant: the silent BulkCompare job now completes and writes the result CSV. Co-Authored-By: Claude Fable 5 --- Extensions/Compare.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/Compare.psm1 b/Extensions/Compare.psm1 index eac05b3..42f579e 100644 --- a/Extensions/Compare.psm1 +++ b/Extensions/Compare.psm1 @@ -706,7 +706,7 @@ function Start-BulkCompareExportObjects $objName = Get-GraphObjectName (?? $compObj.Object1 $compObj.Object2) $item.ObjectType foreach($compValue in $compObj.Result) { - $compValue += [PSCustomObject]@{ + $compValue = [PSCustomObject]@{ ObjectName = $objName Id = $compObj.Id Type = $compObj.ObjectType.Title From f036c64d74f2cd9e53b331c6dcf2a23705c099aa Mon Sep 17 00:00:00 2001 From: Mikael Karlsson <43226266+Micke-K@users.noreply.github.com> Date: Thu, 23 Jul 2026 19:41:47 +1000 Subject: [PATCH 3/3] Refactor comparison logic to use compResultValue --- Extensions/Compare.psm1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Extensions/Compare.psm1 b/Extensions/Compare.psm1 index 42f579e..427d1e5 100644 --- a/Extensions/Compare.psm1 +++ b/Extensions/Compare.psm1 @@ -706,7 +706,7 @@ function Start-BulkCompareExportObjects $objName = Get-GraphObjectName (?? $compObj.Object1 $compObj.Object2) $item.ObjectType foreach($compValue in $compObj.Result) { - $compValue = [PSCustomObject]@{ + $compResultValue = [PSCustomObject]@{ ObjectName = $objName Id = $compObj.Id Type = $compObj.ObjectType.Title @@ -719,23 +719,23 @@ function Start-BulkCompareExportObjects Match = $compValue.Match } - if($global:chkBulkCompareRemoveOData.IsChecked -and ($compValue.Value1 -like "@odata*" -or $compValue.Value2 -like "@odata*")) { + if($global:chkBulkCompareRemoveOData.IsChecked -and ($compResultValue.Value1 -like "@odata*" -or $compResultValue.Value2 -like "@odata*")) { foreach($prop in $('Value1','Value2')) { $tmpValue1 = "" $tmpValue2 = "" - $vauleString = $compValue.$prop + $vauleString = $compResultValue.$prop if($vauleString -is [String]) { - $vauleString = $vauleString -replace $compValue.Id, "" - $tmpObj = $compValue.$prop | ConvertFrom-Json - if($compValue.$prop -and $compValue.$prop -like "@odata*") { + $vauleString = $vauleString -replace $compResultValue.Id, "" + $tmpObj = $compResultValue.$prop | ConvertFrom-Json + if($compResultValue.$prop -and $compResultValue.$prop -like "@odata*") { Remove-GraphODataProperties $tmpObj.$prop | ConvertTo-Json -Depth 50 | Set-Variable -Name "tmp$prop" } } } - $compValue.Match = $tmpValue1 -eq $tmpValue2 + $compResultValue.Match = $tmpValue1 -eq $tmpValue2 } - $compResultValues += $compValue + $compResultValues += $compResultValue } }