diff --git a/powershell/public/Test-MtCaGroupsRestricted.ps1 b/powershell/public/Test-MtCaGroupsRestricted.ps1 index e1a12bcc..efaf6b94 100644 --- a/powershell/public/Test-MtCaGroupsRestricted.ps1 +++ b/powershell/public/Test-MtCaGroupsRestricted.ps1 @@ -52,7 +52,7 @@ Function Test-MtCaGroupsRestricted { -not $_.isManagementRestricted -and -not $_.isAssignableToRole } - $result = ($unrestrictedGroups | Measure-Object).Count -eq 0 + $result = ($UnrestrictedGroups | Measure-Object).Count -eq 0 if ( $result ) { $ResultDescription = "Well done! All security groups with assignment in Conditional Access are protected!"