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

12 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

  9. kevin says:

    If you forgot your windows password. You can use this product: Wi ndows Password key 8.0.
    It is a very quick and useful utility for resetting passwords. It not only supports XP, 2000, and NT, I have personally tested it with Vista Home Premium and Ultimate. It works perfectly to reset any local user account to a blank password.
    Just an easy to use bootable CD/DVD . It can also be used on a USB Flash Drive. http://www.lostwindowspassword.com/

  10. PWRecovery says:

    Forgot or lost Windows password? reset Windows 7 password with Password Unlocker Bundle, one of whose functions is to recover windows password for Windows NT 4.0, Windows 2000, Windows XP, Windows 2003 Server, Windows Vista, Windows 7. ect. This password recovery Bundle is based on friendly GUI, even a computer novice can control the whole process freely. Besides, password unlocker bundle saves a lot trouble. It helps to create a windows password reset CD, with which, you can remove the admin password even you have logged out the computer, yet no reinstalling, no data loss!
    Password Unlocker Bundle is a professinaol password recovery kit, which contains series of password recovery tools: Windows password recovery, PDF password recovery, MS documents password recovery, MS Excel password recovery, WinZIP/ZIP password recovery, WinRAR/RAR password recovery, MS SQL password recovery, Internet password recovery, Windows Live/MSN password recovery, MS Access password recovery, Outlook password recovery, and Outlook Express password recovery, etc., No matter you are at home or in office ,the bundle helps to reset the password we forgot or lost. To grasp the opportunity.

  11. tinker says:

    I ever used a windows password recovery software to reset windows password to blank,it need not to reinstall or reformat the windows os, with no data lose,the tool is “Any Windows Password Recovery 3.0 “,its easier,you could have a try.

    The link to the soft: http://www.anypasswordrecovery.com/download.html

  12. ankit says:

    how can i logon window 7 withou a password without using any software????plz help me

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!