PDF download Download Article
Easily change the password for any account on your Windows computer
PDF download Download Article

Did you forget the password to one of your Windows user accounts? Maybe you are an administrator who wants to change the password for another user. It's important to [[Password-Protect-Your-Windows-Computer |password-protect our computers]] and other devices to keep them safe. You should also change your password every couple of months. Luckily, it's pretty straightforward and easy to change a Windows password using the Command Prompt (CMD) as long as you have administrative privileges . For Mac computers, you can reset the computer's password using the Terminal . This wikiHow teaches you how to change a Windows password using the Command Prompt .

Things You Should Know

  • To change a password in the Command Prompt, type "net user [username] [new password] and press "Enter."
  • For a more discreet option, you can type "net user [username} *" and press "Enter." Then enter the new password twice.
  • You must have administrative access to change a password using the Command Prompt.
Part 1
Part 1 of 2:

Opening Command Prompt

PDF download Download Article
  1. This displays the Command Prompt in the Windows Start menu.
    • On Windows 8, you can bring up the "Search" bar by hovering your mouse in the top-right corner of the screen and clicking the magnifying glass when it appears.
    • If you're using Windows XP, you'll instead click the Run app on the right side of the Start menu.
    Advertisement
  2. It has an icon that resembles a black screen with a white cursor. Right-clicking it will invoke a drop-down menu.
    • If you're using Windows XP, you'll instead type cmd into the Run window.
  3. It's near the top of the drop-down menu. Doing so will open Command Prompt with administrator privileges.
    • You'll need to confirm this choice by clicking Yes when prompted.
    • If you're using Windows XP, you'll click OK to open Command Prompt.
  4. Advertisement
Part 2
Part 2 of 2:

Changing the Password

PDF download Download Article
  1. Make sure you include the space between the two words.
  2. If you're changing your own account password, it will be below the "Administrator" heading on the left side of the Command Prompt window; otherwise, the name will likely be beneath the "Guest" heading on the right.
  3. You'll need to replace "[username]" with the name of the account for which you wish to change the password. Type the account name exactly as it appears in the account name section of the Command Prompt.
    • If you instead see a group of lines that start with "The syntax of this command is:", type net user Administrator * in for an administrator account or net user Guest * for a guest account.
  4. The cursor won't move or show the password. This is to hide the password from anyone who may be looking.
    EXPERT TIP

    Brandon Phipps

    Technology Specialist
    Brandon Phipps is a Technology Specialist based in Bakersfield, CA. He is the owner of Second Star Technologies and specializes in Managed IT Services for small and mid-sized businesses in Bakersfield, CA. With over 23 years of experience, he offers expert cloud computing, cybersecurity, and network management solutions. Brandon is a committed community member and coach who leads and innovates in tech and sports coaching. His dedication to local businesses and communities is evident in his hands-on, tailored approach to IT solutions.
    Brandon Phipps
    Technology Specialist

    Secure your digital life with online password best practices. Choose a long, easy-to-remember passphrase as your password. You should also avoid using the same password for multiple services or websites.

  5. Again, it won't appear as you type, so take your time. Make sure you enter the password exactly as you entered it the first time.
    • For a quicker (but less discreet) option, type net user [username] [new_password] into the Command Prompt and press Enter . Replace "[username]" with the account name you wish to change the password for, and replace "[new_password]" with the password you want to set. [1]
    • You can also find your Wi-Fi password using the Command Prompt
  6. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I remove a password using cmd?
    Community Answer
    Follow the steps listed above and when it prompts you to put in the password just press enter twice.
  • Question
    Will this work on Windows 8?
    Community Answer
    Yes, this will work in Windows 8 or Windows 8.1. With any Admin account, after right clicking the Start screen box in the bottom left corner(for Windows 8.1) (or by clicking the very left corner) and clicking Command Prompt (Admin), you can achieve the same box - just agree to the User Account Control box by clicking the OK button from the dialog box. Otherwise, stay with the same process from that point forward.
  • Question
    I bought a computer from someone and now I can't reach him. There are two administrator passwords. How can I remove the administrators and passwords on what is now my computer?
    Community Answer
    If you're on Windows 8/10, press and hold Shift key while you're clicking on Restart in Power Options. It will show a Recovery menu. There press advanced, command prompt, and wait. You need to type the same commands listed in the guide. Basically this is an admin command prompt, so you should have the privilege to change the admin password.
See more answers
Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      Advertisement

      About This Article

      Article Summary X

      1. Open the Command Prompt.
      2. Type "net user [username] *" and press Enter .
      3. Enter the new password and press Enter . 4. Enter the password again and press Enter .

      Did this summary help you?
      Thanks to all authors for creating a page that has been read 2,119,000 times.

      Is this article up to date?

      Advertisement