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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store