Find All Disabled Accounts in your Domain via Active Directory PowerShell

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

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

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
SUBSCRIBE!
Give it a try, you can unsubscribe anytime.