Forum Discussion
MFA and Powershell
- Oct 24, 2016
Hey Everyone,
Thanks for your continued engagement. The MFA Powershell team says I can share the link with y'all: http://aka.ms/exopspreview
Do let us know if you have feedback.
Thanks!
Brandon Koeller
Yup, not supported. We should have a ADAL-enabled PowerShell module for Exchange Online soo(ish), then you will be finally able to use MFA for all admin account (that require access to ExO PowerShell).
hi how do you set bulk users to disbaled status from enabled? i am using the below script
$users = Import-Csv 'C:\support\BulkUpdateMFASampleFile.csv'
foreach ($user in $users)
{
$st = New-Object -TypeName Microsoft.Online.Administration.StrongAuthenticationRequirement
$st.RelyingParty = "*"
$st.State = “Disabled”
$sta = @($st)
Set-MsolUser -UserPrincipalName $user.Username -StrongAuthenticationRequirements $sta
}