You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw"Failed to retrieve current authentication methods policy information"
35
+
}
36
+
33
37
if ($Settings.remediate-eq$true) {
34
-
if ($CurrentInfo.policyMigrationState-eq'migrationComplete') {
38
+
if ($CurrentInfo.policyMigrationState-eq'migrationComplete'-or$null-eq$CurrentInfo.policyMigrationState) {
35
39
Write-LogMessage-API 'Standards'-tenant $tenant-message 'Authentication methods policy migration is already complete.'-sev Info
36
40
} else {
37
41
try {
@@ -44,14 +48,14 @@ function Invoke-CIPPStandardAuthMethodsPolicyMigration {
44
48
}
45
49
46
50
if ($Settings.alert-eq$true) {
47
-
if ($CurrentInfo.policyMigrationState-ne'migrationComplete') {
51
+
if ($CurrentInfo.policyMigrationState-ne'migrationComplete'-and$null-ne$CurrentInfo.policyMigrationState) {
48
52
Write-StandardsAlert-message 'Authentication methods policy migration is not complete. Please check if you have legacy SSPR settings or MFA settings set: https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-methods-manage'-object $CurrentInfo-tenant $tenant-standardName 'AuthMethodsPolicyMigration'-standardId $Settings.standardId
49
53
Write-LogMessage-API 'Standards'-tenant $tenant-message 'Authentication methods policy migration is not complete'-sev Alert
0 commit comments