Powershell reports for users with MFA setup in o365

Just a quick post about how to findout which users have setup MFA.

Get-MsolUser -all | select DisplayName,UserPrincipalName,@{N="MFA Status"; E={ if( $_.StrongAuthenticationMethods.IsDefault -eq $true) {($_.StrongAuthenticationMethods | Where IsDefault -eq $True).MethodType} else { "Disabled"}}} | Export-Csv -NoTypeInformation C:\temp\MFAStatus.csv

I brought this code together from examples on

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.