In Windows Sever 2008 R2 or later, we can easily locate a locked Active Directory user account by performing "Search-ADAccount -LockedOut".
Remark: In Windows Server 2008 R2, you have to import the Active Directory module by "Import-Module ActiveDirectory" before performing the Active Directory cmdlets.
In order to unlock an Active Directory user account, we can perform "Unlock-ADAccount -Identity User1 -PassThru" to unlock the locked Active Directory user account.
This posting is provided “AS IS” with no warranties, and confers no rights!
No comments:
Post a Comment