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, thanks for dropping by. If you enjoyed reading this post, you may want to subscribe to my RSS feed. It could could win you some great prizes this month. Thanks for visiting!


Related Posts

Comments

3 Responses to “How to change your windows password using the command line”

  1. Micheal on November 13th, 2007 1:40 am

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

  2. jitendra agarwal on October 18th, 2008 8:46 am

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

  3. paul masterman on November 15th, 2008 2:31 am

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

Got something to say?