December 22nd, 2016

PowerTip: List locked-out accounts in Active Directory with PowerShell

Doctor Scripto
Scripter

Summary: Use Active Directory cmdlets to identify locked-out user accounts and computer accounts.

Hey, Scripting Guy! Question Is there a quick and easy way to find all users who are locked out in Active Directory by using PowerShell?

 

Hey, Scripting Guy! Answer You’ll love this. The answer is just one cmdlet away with the ActiveDirectory module. Just use Search-ADAccount, and you’ll have a complete list on your screen.

The Doctor

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.