bwya77 / O365-Admin-Center

The O365 Admin Center is a GUI application that administrators can use to administer every aspect of Office 365 including Exchange Online, Compliance Center, SharePoint and Skype for Business.
Other
301 stars 68 forks source link

Issue with command #5

Closed psoba closed 8 years ago

psoba commented 8 years ago

PS C:\windows\System32> $users = Import-Csv 'C:\support\BulkUpdateMFASampleFile - Copy.csv' foreach ($user in $users) { $st = New-Object -TypeName Microsoft.Online.Administration.StrongAuthenticationRequirement $st.RelyingParty = "*" $st.State = “Enabled” $sta = @($st) Set-MsolUser -UserPrincipalName $user -StrongAuthenticationRequirements $sta } Set-MsolUser : User Not Found. User: . At line:8 char:5

psoba commented 8 years ago

please can you assist what the incorrect syntax is it keeps failing. i am trying to bulk update MFA for a list of users in a CSV