Pinterest Stumbleupon Whatsapp
Ads by Google

Are you an administrator on the Windows operating system with multiple user accounts? Have you forgotten the password to one of those accounts and you are locked out? Then, provided you are the administrator, you can reset the password from the command line.

To open the Windows command line, just go to your start menu then choose “run” (or press your Windows key and then press R). Then in the box that pops up, type cmd and press enter.

In the black box that comes up, type net user then enter. This will give you a list of all your Windows accounts on that computer.

To change the password for one of these accounts is very simple. Say the Windows account name is asks and you want to change the password to mypa$$word then you just need to type the following :

    net user asks mypa$$word

Windows Command Prompt - Change Password

After pressing enter, you should then get a message saying “the command completed successfully”. That means the password has now been changed and you can now log into that account.

Ads by Google

  1. Kishore Negi
    July 21, 2016 at 6:05 am

    Anyone can give me solution of my query???

    how to reset bulk user's password ? (50 No's of user in one time)

  2. Kdjfhd irndkdm,d
    June 6, 2016 at 7:22 pm

    Thanks I was actually able to create an account and make it Admin through this process at the welcome screen by replacing the sticky keys function with cmd

  3. Kelly Clubb
    October 15, 2015 at 2:50 pm

    Also if the username is more than 1 word you can toss "John Doe" for user to clear that up. I didn't see anyone mention that. Just put it in quotes

    • Kelly Clubb
      October 15, 2015 at 3:06 pm

      Example: net user "John Doe" password

  4. calin
    October 29, 2009 at 1:31 pm

    Your post is great! I have a Windows 2008 server (administrated remotely) and after I had uninstalled the active directory all my users were deleted and seems that also the password for administrator user was messed up. So because we have a service which runs a nant build system I've put the command to reset the password into nant script with tag. Now I can log in again to my server.
    Thank you for your post!

  5. TimB
    August 20, 2008 at 8:32 pm

    Cool... Exactly what I needed to know just now.

    I have to reset the local admin passwords on all our PCs, and this will make scripting it dead easy.

  6. Sasha
    February 17, 2008 at 9:44 pm

    You know an even easier way to change/reset user passwords? start > run > control userpasswords2.

    • Mutkau817
      January 17, 2009 at 5:01 pm

      that only works if you already know the password for the account. This is useful if you forgot the password, or need to get into an account you normally do not have access to

  7. Aibek
    February 17, 2008 at 8:51 pm

    "TO THE EARLIER COMMENTER"

    I am pretty sure I had approved your comment earleir but for some reason it's not here. :? I must have mistakenly set it to 'delete' instead of 'approve'. Sorry ... :-(

Leave a Reply

Your email address will not be published. Required fields are marked *