Aug 12 2020
10:40 PM
- last edited on
Apr 01 2022
09:35 AM
by
TechCommunityAP
Aug 12 2020
10:40 PM
- last edited on
Apr 01 2022
09:35 AM
by
TechCommunityAP
_____________________________
existing script:
$auth.RelyingParty = "*"
$auth.State = "Enforced"
$auth.RememberDevicesNotIssuedBefore = (Get-Date)
Import-Csv C:\CSV\MFA_Enabled.csv | Get-MsolUser | Foreach{ Set-MsolUser -UserPrincipalName $_.UserPrincipalName -StrongAuthenticationRequirements $auth}
------------------------------------------------------------------------------------------------------------------------------------------------------------------
if we use “Enable” in the $auth.State, can this script be enhanced to include checkpoint/verification if the current state is already “Enforced” then provide prompt or even skip that particular user?