Community Tested

wikiHow to Change a Computer Password Using Command Prompt

A command prompt is a command you issue to your computer using a built-in program. To change a computer password using Microsoft Command Prompt, read this wikiHow.

10 Second Summary

1. Boot your computer in Safe Mode.More ↓
2. Open Command Prompt. 
3. Type net user and press Enter. 
4. Type net user followed by your username, and hit Enter. 
5. Carefully type the desired password and press Enter. 
6. Retype the password and hit Enter to confirm. 

Steps

  1. 1
    Reboot the computer
  2. 2
    Right after the bios is finished, hit F8 (or F2,F10,F12)
  3. 3
    Select 'Safe mode' or 'Safe mode with networking support'
  4. 4
    Windows will boot up to the login screen. Click administrator, 9/10 there is no password.
  5. 5
    Open Command Prompt. You can go to Start > Run and typecmd.exe or simply search for cmdusing the Windows search function.
  6. 6
    Type net user and press Enter.This will bring up a list of user accounts. Look here for the name and exact spelling of the account whose password you wish to change.
  7. 7
    Type net user name goes here *.Do not neglect any of the spaces (particularly the one before the *) or the command won’t work.
  8. 8
    Press Enter. Once submitted, the command will give you the option of typing a new password for the user.
  9. 9
    Carefully type the desired password and press Enter. The characters will not display as you type, so make sure the Caps Lockisn’t on and be very thorough with the spelling and punctuation.
  10. 10
    Retype the password to confirm. This should weed out any typos.
  11. 11
    Press Enter. The new password should go into effect immediately. If you get an error message or your access is denied, the account you’re working on doesn’t have high enough authorization to change any passwords. See Tips for possible solutions.
    Advertisement

Community Q&A

  • How do I remove a password using cmd?
    Answered by wikiHow Contributor
    • Follow the steps listed above and when it prompts you to put in the password just press enter twice.
  • Will this work on Windows 8?
    Answered by wikiHow Contributor
    • 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.
  • It is asking for the administrator's password. What should I do to solve the problem?
    Answered by wikiHow Contributor
    • If you are the administrator, enter your password. If not, ask the computer administrator to fill in the password for you.
  • What do I do if I am the administrator and I have forgotten my password?
    Answered by wikiHow Contributor
    • If you forget your user account password, then try this: Start your computer and when you see Windows Welcome screen (Login screen), press ++ keys twice and it'll show Classic Login box. Now type Administrator in the Username box and leave the Password box empty.
  • Is rebooting needed?
    Answered by Brandon Small
    • No, it would be as if you are creating a new user account in the control panel. A logout is needed, however.
  • What does the "System error 5 has occurred" message mean?
    Answered by wikiHow Contributor
    • It simply means you do not have the correct privileges to change the password (e.g. you're not on an administrator account).
  • Does this apply on Windows 7?
    Answered by wikiHow Contributor
    • Yes, this applies on Windows 7.

Tips

  • On a Windows XP and below computer, you can access the secret administrator by pressing F5 during bootup (the timing can be tricky and you may have to try more than once) to get into Safe Mode (the secret Administrator account that only shows up in Safe Mode). From here, you can follow the steps above.
  • If your account is not authorized to change passwords, you might have success with enabling the computer’s secret administrator account. (Type net user into Command Prompt again. See an account there named “Administrator” that isn’t usually displayed when you boot the computer up?) The secret administrator account is usually inactive, but active and inactive accounts can also be modified using Command Prompt.
    • To make an account inactive, type: net user name goes here set /INACTIVE
    • To make an account active, type: net user name goes here set /ACTIVE

Warnings

  • Be careful when using command prompt – it has more power than you think. One wrong move can seriously mess up a computer.
  • If you do not have an administrative account, you will be denied access.
  • Do not do this on a computer that isn’t your own, particularly if it belongs to a school or business you attend or work for. If you are caught, you will most likely be suspended/expelled or fired.

Related wikiHows

How to
Change the Icon of Removable Drives
How to
Find a Website's IP Address
How to
Program a New Motorola Cell Phone
How to
Upgrade the Harddrive in Your Archos Jukebox
How to
Find All Commands of CMD in Your Computer
How to
Set Administrator Password
How to
Find Your Wi Fi Password when You Forgot It
How to
Copy Files in Command Prompt
How to
Run a Program on Command Prompt
How to
Change Directories in Command Prompt

About this wikiHow

Community Tested By 

Computer Angel HackersTeam

Co-authors: 51
Updated: February 3, 2017
Views: 1,219,752
Categories: Command Prompt