<#
  Script to determine MFA Status per User Entered.

    Install-Moduule -Name MSOnline
    Install-Module AzureAD

#>

#Connect-AzureAD
Connect-MsolService

$user=Read-Host 'Enter User name:  '
Get-MsolUser -UserPrincipalName "$user@hchent.com" -EnabledFilter EnabledOnly | select DisplayName,UserPrincipalName,@{N="MFA Status";
 E={ if( $_.StrongAuthenticationMethods.IsDefault -eq $true) {
       ($_.StrongAuthenticationMethods | Where IsDefault -eq $True).MethodType
     } else { "Disabled-NO MFA"}
   }
 } | FT -AutoSize