Question:How To Get All The User Accounts Status In Active Directory Using PowerShell

Answer: To get all the User accounts in Active Directory and their status you can use the following PowerShell cmdlet:

get-user -resultsize 3000 | Format-Table name, UserAccountControl

If you just need to get all the disabled user accounts in Active Directory use the following cmdlet:

get-user -resultsize 3000 |where { $_.UserAccountControl -match “AccountDisabled”}