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

    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
    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
    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
    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
    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
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

Advertisement

You Might Also Like

Change the Icon of Removable DrivesChange the Icon of Removable Drives
Find a Website's IP Address Find a Website's IP Address: 6 Easy Lookup Tricks
Find All Commands of CMD in Your Computer Display and Use CMD Commands: A List and Guide
Set Administrator PasswordSet Administrator Password
Change Directories in Command Prompt Navigate to a Different Folder in the Command Prompt
Format a USB Using Cmd Format a USB Using CMD (Command Prompt)
Reboot from Command Prompt on WindowsReboot from Command Prompt on Windows
Use Windows Command Prompt to Run a Python FileUse Windows Command Prompt to Run a Python File
Run a Batch File from the Command Line on Windows Run a Windows Batch File from the Command Line (CMD)
Open a Folder in Cmd Open a Folder in Command Prompt (CMD)
Add Users from CMDAdd Users from CMD
Open Command Prompt with a Keyboard Shortcut (Windows 8, 8.1, and 10)3 Ways to Open Command Prompt with Keyboard on Windows
Watch Star Wars on Command Prompt Watch Star Wars via Telnet: Windows CMD & Mac Terminal
Open the Command Prompt in Windows5 Simple Ways to Open the Command Prompt in Windows
Advertisement

About This Article

Travis Boylls
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for wikiHow. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been viewed 2,229,488 times.
How helpful is this?
Co-authors: 63
Updated: August 25, 2024
Views: 2,229,488
Categories: Command Prompt
Article SummaryX

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,229,488 times.

Is this article up to date?

Advertisement