Search-ADAccountIT technician command center
PowerShell · Active Directory

Search-ADAccount

Find locked, disabled, inactive, or expired accounts.

Copy-ready commandSearch-ADAccount
Search-ADAccount -LockedOut

Requirements and permissions

Requirements
RSAT ActiveDirectory module
Permissions
Domain permissions vary
Last reviewed
2026-07-31

Examples

Basic example

Find locked, disabled, inactive, or expired accounts.

Search-ADAccount -LockedOut

Common errors

Command not found

Confirm RSAT ActiveDirectory module is installed and available in your current shell.