Quantcast
Channel: Active Directory – risual
Viewing all articles
Browse latest Browse all 11

Find All Disabled Accounts in your Domain via Active Directory PowerShell

$
0
0

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

Post to Twitter


Viewing all articles
Browse latest Browse all 11

Trending Articles