$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”
$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