Question:How To Get All Disabled User Account In Active Directory Using PowerShell

Answer: If you just need to get all the disabled user accounts in Active Directory using PowerShell you can use the following cmdlet.

Note: Make sure the user account you run the cmdlet has all the right permissions.

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