PowerShell has a module that will allow you to unlock an AD user. The AD PowerShell module has number of commands for managing AD users, groups, trees, forests etc..
Unlock an AD user
1. Right-click w/Shift on the PowerShell icon (or ConEmu if you prefer that tool) to “RunAs Different User”.
2. Search for the locked account. (ommitting the ? clause will display *all* locked user accounts within the domain)
1 |
Search-ADAccount -LockedOut | ? SamAccountName -eq 'lincoln.bovee' |
3. Unlock the specific user account. (be careful with this command! If you omit the ? clause, you could unlock ALL the accounts that are currently locked!!)
1 |
Unlock-ADAccount lincoln.bovee |
4. Verify the account is now unlocked (active:yes)
1 |
Search-ADAccount -LockedOut | ? SamAccountName -eq 'lincoln.bovee' (to confirm it is now NULL) |
Views – 3137