Get-AzureADUser -All $True |where {$_.UserType -eq 'Guest'} |Select DisplayName, UserPrincipalName, AccountEnabled, mail, UserType |Export-csv "AzureGuestUsers.csv" -NoTypeInformation