File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ function Get-CIPPMFAState {
9292 }
9393 }
9494
95- $PerUser = if ($PerUserMFAState -eq $null ) { $null } else { ($PerUserMFAState | Where-Object - Property UserPrincipalName -EQ $_.UserPrincipalName ).PerUserMFAState }
95+ $PerUser = if ($null -eq $PerUserMFAState ) { $null } else { ($PerUserMFAState | Where-Object - Property UserPrincipalName -EQ $_.UserPrincipalName ).PerUserMFAState }
9696
97- $MFARegUser = if (($MFARegistration | Where-Object - Property UserPrincipalName -EQ $_.userPrincipalName ).isMFARegistered -eq $null ) { $false } else { ($MFARegistration | Where-Object - Property UserPrincipalName -EQ $_.userPrincipalName ) }
97+ $MFARegUser = if ($null -eq ($MFARegistration | Where-Object - Property UserPrincipalName -EQ $_.userPrincipalName ).isMFARegistered) { $false } else { ($MFARegistration | Where-Object - Property UserPrincipalName -EQ $_.userPrincipalName ) }
9898
9999 [PSCustomObject ]@ {
100100 Tenant = $TenantFilter
You can’t perform that action at this time.
0 commit comments