Forum Discussion
Marvin Oco
Aug 13, 2020Steel Contributor
MFA - Enable via Powershell
_____________________________
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?
No RepliesBe the first to reply