@@ -246,12 +246,12 @@ $certThumbprint = if ($CertificateThumbprint) { $CertificateThumbprint } else {
246246# ###################################################################################################
247247
248248# Version of the local script
249- $localVersion = " 3.4.1 "
249+ $localVersion = " 3.4.3 "
250250
251251Write-Host " 🔍 INTUNE ASSIGNMENT CHECKER" - ForegroundColor Cyan
252252Write-Host " Made by Ugur Koc with" - NoNewline; Write-Host " ❤️ and ☕" - NoNewline
253253Write-Host " | Version" - NoNewline; Write-Host " $localVersion " - ForegroundColor Yellow - NoNewline
254- Write-Host " | Last updated: " - NoNewline; Write-Host " 2025-07-02 " - ForegroundColor Magenta
254+ Write-Host " | Last updated: " - NoNewline; Write-Host " 2025-09-19 " - ForegroundColor Magenta
255255Write-Host " "
256256Write-Host " 📢 Feedback & Issues: " - NoNewline - ForegroundColor Cyan
257257Write-Host " https://github.com/ugurkocde/IntuneAssignmentChecker/issues" - ForegroundColor White
@@ -901,8 +901,8 @@ function Process-MultipleAssignments {
901901
902902 foreach ($assignment in $Assignments ) {
903903 $assignmentInfo = @ {
904- Reason = $assignment.Reason
905- GroupId = $assignment.GroupId
904+ Reason = $assignment.Reason
905+ GroupId = $assignment.GroupId
906906 GroupName = $null
907907 }
908908
@@ -7236,7 +7236,7 @@ do {
72367236 $hasAssignment = $assignmentResponse.value | Where-Object {
72377237 $_.target.groupId -eq $groupId -and
72387238 ($_.target .' @odata.type' -eq ' #microsoft.graph.groupAssignmentTarget' -or
7239- $_.target .' @odata.type' -eq ' #microsoft.graph.exclusionGroupAssignmentTarget' )
7239+ $_.target .' @odata.type' -eq ' #microsoft.graph.exclusionGroupAssignmentTarget' )
72407240 }
72417241 if ($hasAssignment ) {
72427242 # Check if it's an exclusion
@@ -7245,7 +7245,8 @@ do {
72457245 }
72467246 $displayName = if ($isExclusion ) {
72477247 " $ ( $config.displayName ) [EXCLUDED]"
7248- } else {
7248+ }
7249+ else {
72497250 $config.displayName
72507251 }
72517252 [void ]$groupAssignments [$groupName ].DeviceConfigs.Add($displayName )
@@ -7268,7 +7269,7 @@ do {
72687269 $hasAssignment = $assignmentResponse.value | Where-Object {
72697270 $_.target.groupId -eq $groupId -and
72707271 ($_.target .' @odata.type' -eq ' #microsoft.graph.groupAssignmentTarget' -or
7271- $_.target .' @odata.type' -eq ' #microsoft.graph.exclusionGroupAssignmentTarget' )
7272+ $_.target .' @odata.type' -eq ' #microsoft.graph.exclusionGroupAssignmentTarget' )
72727273 }
72737274 if ($hasAssignment ) {
72747275 # Check if it's an exclusion
@@ -7277,7 +7278,8 @@ do {
72777278 }
72787279 $displayName = if ($isExclusion ) {
72797280 " $ ( $policy.name ) [EXCLUDED]"
7280- } else {
7281+ }
7282+ else {
72817283 $policy.name
72827284 }
72837285 [void ]$groupAssignments [$groupName ].SettingsCatalog.Add($displayName )
@@ -7311,7 +7313,7 @@ do {
73117313 $hasAssignment = $assignmentResponse.value | Where-Object {
73127314 $_.target.groupId -eq $groupId -and
73137315 ($_.target .' @odata.type' -eq ' #microsoft.graph.groupAssignmentTarget' -or
7314- $_.target .' @odata.type' -eq ' #microsoft.graph.exclusionGroupAssignmentTarget' )
7316+ $_.target .' @odata.type' -eq ' #microsoft.graph.exclusionGroupAssignmentTarget' )
73157317 }
73167318 if ($hasAssignment ) {
73177319 # Check if it's an exclusion
@@ -7320,7 +7322,8 @@ do {
73207322 }
73217323 $displayName = if ($isExclusion ) {
73227324 " $ ( $policy.displayName ) [EXCLUDED]"
7323- } else {
7325+ }
7326+ else {
73247327 $policy.displayName
73257328 }
73267329 [void ]$groupAssignments [$groupName ].CompliancePolicies.Add($displayName )
@@ -7572,7 +7575,7 @@ do {
75727575 }
75737576 }
75747577 }
7575-
7578+
75767579 # Export results if requested
75777580 if ($ExportToCSV -or -not $parameterMode ) {
75787581 $exportPath = if ($ExportPath ) {
0 commit comments