Search-ADAccount
SafeFind problem accounts
Search-ADAccount -LockedOut
Pulls locked, disabled, expired or stale accounts — central to both lockout response and audits.
Examples
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -UsersOnlyUsers inactive 90+ days
Syntax
Search-ADAccount [-LockedOut] [-AccountDisabled] [-AccountExpired] [-AccountInactive -TimeSpan 90]
Before you run it
Read only.
Used when you see
Related commands
- Unlock-ADAccountUnlock accounts
- net userUser account info/ops
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store