Today I fat-fingered a password many times while trying to log into one of our project servers. Our domain accounts have been put into the Administrators group on that server but through Group Policy (or some other mechanism) we cannot load any MMC snap-ins. To get around that we've been given a single local administrator account. That's the account I locked up. I sent off a request to get the account unlocked but being impatient I started looking for a way to unlock a user account through the command line. Here's how (replace <username> with the actual username):
C:> net user /Active:YES <username>
12 comments:
That's a really useful tip - exactly what I was looking for. Thanks very much.
with /DOMAIN you can also change accout onthe domain rather than just local accounts.
Nice tip
This is a very nice tip, and the /DOMAIN switch did what I needed it to do!
Very useful and V quick, thanks a lot.
Thanks! Just one question, why doesn't this show up when you type "net user /?"
@John. That I don't know.
Yess, I frankly thanks to this posting. Command Prompt is (still) powerfull at all. :)
Thanks for the tip. It was quite useful and saved a lot of time.
Awesome!!!! Thanks.
Great!! I'd been looking for this trick for a long time.
Worked flawlessly
Unlocking a User Account from Command Line"
it is enable account from disabled not for unlock account.
Yes, exactly what was needed to unlock the user account.
Post a Comment