How to change your windows password using the command line

You need to have admin access to perform this change from the command line. This is an especially handy trick if you want to change a password on an account but you’ve forgotten the original (going through the Control Panel can require confirmation of the old password).

Change password screen through control panel

In this example, I want to change the password for a user names Askstudent. To verify the user name, by simply typing net user, I get a list of all the user names on that windows machine. Now, go to the command prompt and enter:

cd\
cd windows\system32
net user  

E.g.
> net user asks mypa$$word

If there are people near you and you don’t want them to see the password you type, enter:
net user *

E.g. > net user asks *
> Type a password for the user:
> Confirm the password:

 

using net user to change password

If you liked this article, click here to buy me a beer!

Dear visitor, if you enjoyed reading this post, you may want to subscribe to my RSS feed. Thanks for visiting!

Related Posts

Comments

Comments

8 Responses to “How to change your windows password using the command line”
  1. Micheal says:

    I have a problem with creating administrator accounts using command prompt from an unlimited account

  2. jitendra agarwal says:

    sir, how to hack administors account through limited account in command prompt. ples halp……..

  3. paul masterman says:

    yes i lost my administrator password so i cant logon to windows 2000

  4. Zeid says:

    How can I change a password using cmdif the user name is made up of two words, such as: Zeid Doofesh

  5. cody says:

    like if you put net user and hit enter and then put net user and user name and press the space bar and hit * and press enter and a thing came up saying type password and you try typing a password and nothing will show and you hit enter and it says retype password to confirm and a thing came up saying access denied and you where on a limitted acount

  6. wizajit says:

    @Zeid,

    You can change the password of the user with two or more words as follows:

    ——–
    net user “Zeid Doofesh” myPasswordHere
    ——–

    rds,
    wizajit

  7. vishal kumar says:

    i want to know how to change the password and find errors through cmd

  8. LoKoNiia says:

    How do u change passwords if u are a limited account

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!