Get-MSOLUSERS MFA Status From Import-CSV

$UserPrincipalName=import-csv c:\temp\TEST-MFA-Enrolled.csv

$UserPrincipalName.foreach( { Get-MsolUser -UserPrincipalName $_.Name | where {$_.StrongAuthenticationMethods -like “strong“} } ) | Export-Csv “C:\Temp\User-TO-BE-Added-EnrolledGroup.csv”

Leave a comment