Find All Disabled Accounts in your Domain via Active Directory PowerShell

2017-12-07T10:36:59+00:00 September 2nd, 2011|Azure, Cloud, PowerShell|

Here’s a quick command you can run in AD PowerShell that will give you a list of all disabled accounts in your domain.

Search-ADAccount -accountdisabled | FL SamAccountName

This will give you a list like below.

SamAccountName : User1

SamAccountName : User 2

SamAccountName : User3

SamAccountName : User4