Summary: Use Active Directory cmdlets to identify locked-out user accounts and computer accounts.
Is there a quick and easy way to find all users who are locked out in Active Directory by using PowerShell?
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.