opened
darkhawk311
username_0
These scripts should exclude disabled users since these accounts cannot authenticate against Azure AD.

Updated Commands: (includes "-and $_.BlockCredential -eq $False" in Where-Object clause)

Get-MsolUser -All | Where-Object {$_.StrongAuthenticationMethods -ne $null -and $_.BlockCredential -eq $False} | Select-Object -Property UserPrincipalName

Get-MsolUser -All | Where-Object {$_.StrongAuthenticationMethods.Count -eq 0 -and $_.BlockCredential -eq $False} | Select-Object -Property UserPrincipalName





---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: c695a366-7220-081a-8e04-ab84c6f201b7
* Version Independent ID: bec85559-f35b-d6ff-4ea9-92a3d411d37f
* Content: [Access and usage reports for Azure MFA - Azure Active Directory](https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-reporting)
* Content Source: [articles/active-directory/authentication/howto-mfa-reporting.md](https://github.com/Microsoft/azure-docs/blob/master/articles/active-directory/authentication/howto-mfa-reporting.md)
* Service: **active-directory**
* Sub-service: **authentication**
* GitHub Login: @iainfoulds
* Microsoft Alias: **iainfou**
PowerShell reporting on users registered for MFA
issue
created
MarileeTurscak-MSFT
username_1
@username_0 
Thanks for your feedback! We will investigate and update as appropriate.
comment
closed
MarileeTurscak-MSFT
username_1
issue
created
MarileeTurscak-MSFT
username_1
I think this is a good thing to call out, thanks! I made a pull request to update the commands with your suggestions. https://github.com/MicrosoftDocs/azure-docs-pr/pull/108172
comment