Pinterest Stumbleupon Whatsapp
Advertisement

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

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

Now in the Command Prompt window that comes up, type net user then enter. This will give you a list of all your Windows accounts on that computer.

Changing the password for one of these accounts is very simple. Say the account name is asks and you want to change the password to thenewpassword then you just need to type the following command:

net user asks thenewpassword

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.

Advertisement

If the user account name has more than one word e.g. John Doe, place the username within quotes.

net user "John Doe" thenewpassword

Did this command work for you? Let us know in the comments below.

Leave a Reply

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

  1. Sammy B
    March 31, 2017 at 10:14 pm

    How about 1 or 2, I think 2 is true if some user have more than 1 empty space
    1. net user Some User userpass
    2. net user "Some User" userpass

  2. 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)

  3. 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

  4. 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

      • Bernie
        November 7, 2016 at 12:12 am

        Thank you so much for mentioning the quotes!!

    • Promise
      January 21, 2017 at 7:18 pm

      Your quotes comment really saved me

  5. 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!

  6. 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.

  7. 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

  8. 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 ... :-(