Wednesday, January 13, 2016

How to find out all locked out accounts in AD using Powershell


Search-ADAccount -LockedOut
The output from this cmdlet will list all the locked out accounts.  

If you want to unlock all those accounts:
Search-ADAccount -LockedOut | Unlock-ADAccount

No comments: