Share via


Unlocking a User Account

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to unlock users who are locked out of the system.

Example

The following example demonstrates how to unlock the user account U1 in the organizational unit (OU) Test in the Fabrikam.com domain:

Unlock-ADAccount -Identity "CN=U1,OU=Test,DC=FABRIKAM,DC=COM"

Additional information

For a full explanation of the parameters that you can pass to Unlock-ADAccount, at the Active Directory module command prompt, type Get-Help Unlock-ADAccount –detailed, and then press ENTER.