Sunday, December 7, 2014

Unlock a Domain User from CMD Line

To unlock a domain user from the command line, use this command:

net user <username> /domain /active:yes

This can also be done using Powershell:

Unlock-ADAccount -identity "CN=John,OU=myUsers,DC=myDomain,DC=local"

No comments:

Post a Comment