Unlock domain account from the command line (or PowerShell)

If you find a domain account has been locked, you can unlock it via the command line (running as administrator). First, check the status by running the command below – replacing loginname with the username of course!:
net user loginname /DOMAIN

If the “Account Active” setting is Locked (or No), you can unlock using:
net user loginname /DOMAIN /ACTIVE:yes

Note you can also reset a user password in a similar fashion:
net user loginname newpassword /DOMAIN /ACTIVE:yes

Related Posts

Need IT Help?

If you need assistance please feel free to reach out to us.