Unlocking an AD account with PowerShell

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)

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!!)

4. Verify the account is now unlocked (active:yes)

Search-ADAccount

Views – 1105