How to Change a Computer Password Using Command Prompt

This wikiHow teaches you how to change a PC's password from an administrator account by using Command Prompt. If you do not have administrator access to the computer you will not be able to change the password. For Mac computers, you can...

Part 1 of 2:

Opening Command Prompt

  1. Picture 1 of How to Change a Computer Password Using Command Prompt
    Open your PC's Start menu. You can do this either by clicking the Windows logo in the bottom-left corner of the screen, or by pressing the Win key on your keyboard. The Start menu will open with your mouse cursor in the "Search" field.
  2. Picture 2 of How to Change a Computer Password Using Command Prompt
    Type command prompt into the "Search" field. This will search your computer for the Command Prompt app. You should see it pop up at the top of the search menu.
    1. 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.
    2. If you're using Windows XP, you'll instead click the Run app on the right side of the Start menu.
  3. Picture 3 of How to Change a Computer Password Using Command Prompt
    Right-click Command Prompt. It resembles a black box; right-clicking it will invoke a drop-down menu.
    1. If you're using Windows XP, you'll instead type cmd into the Run window.
  4. Picture 4 of How to Change a Computer Password Using Command Prompt
    Click Run as administrator. It's near the top of the drop-down menu. Doing so will open Command Prompt with administrator privileges.
    1. You'll need to confirm this choice by clicking Yes when prompted.
    2. If you're using Windows XP, you'll click OK to open Command Prompt.
Part 2 of 2:

Changing the Password

  1. Picture 5 of How to Change a Computer Password Using Command Prompt
    Type net user into Command Prompt. Make sure you include the space between the two words.
  2. Picture 6 of How to Change a Computer Password Using Command Prompt
    Press Enter. Doing so will display a list of all user accounts registered to your computer.
  3. Picture 7 of How to Change a Computer Password Using Command Prompt
    Find the name of the account you wish to edit. 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.
  4. Picture 8 of How to Change a Computer Password Using Command Prompt
    Type net user [name] * into Command Prompt. You'll replace [name] with the name of the account for which you wish to change the password.
    1. When you type in the account name, you must do so exactly as it appears in the account name section of Command Prompt.
  5. Picture 9 of How to Change a Computer Password Using Command Prompt
    Press Enter. This will run your command; you should see a new line appear with "Type a password for the user:" written.
    1. 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.
  6. Picture 10 of How to Change a Computer Password Using Command Prompt
    Type in a new password. The cursor won't move while you do this, so be careful not to accidentally press the Caps Lock key.
  7. Picture 11 of How to Change a Computer Password Using Command Prompt
    Press Enter. You'll be prompted to re-enter your password.
  8. Picture 12 of How to Change a Computer Password Using Command Prompt
    Re-type your password. Again, it won't appear as you type, so take your time.
  9. Picture 13 of How to Change a Computer Password Using Command Prompt
    Press Enter. As long as the two word entries match each other, you'll see "The command completed successfully" display beneath the second password entry. The next time you attempt to log onto your PC, you'll need to enter your updated password to continue.
Update 04 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile