Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How would I change the password of Windows 7 using the command prompt if the existing password isn't known, but I have admin rights?

share|improve this question

migrated from stackoverflow.com Aug 2 '12 at 2:32

This question came from our site for professional and enthusiast programmers.

4 Answers 4

Use the "net user" command.

C:\>net user /?
The syntax of this command is:

[username [password | *] [options]] [/DOMAIN]
         username {password | *} /ADD [options] [/DOMAIN]
         username [/DELETE] [/DOMAIN]
         username [/TIMES:{times | ALL}]


See also here: http://technet.microsoft.com/en-us/library/8935e4a8-3624-46a1-b47a-c7735802b456
and here http://support.microsoft.com/kb/251394

share|improve this answer

Yes you could change the password with net user <username> <newpassword>.

Here further informations.

share|improve this answer

Type this command net user (your username) * Then type new password, and confirm it. You are done. See the image. In the image zack is my username. When you type the password the command prompt won't show the cursor moving as you type. Just type new password and press enter. enter image description here

share|improve this answer

Here are detailed steps to use the command prompt to change Windows 7 password:

  1. Start your computer and press "F8" while the computer boots up. The Advanced Boot Options screen appears.

  2. Scroll down to "Safe Mode with Command Prompt" with the arrow keys on the keyboard and press "Enter." Your computer starts in Safe Mode with Command Prompt.

  3. Select the Administrator account that appear in the screen, then enter command prompt.

  4. Type the commands for bypassing windows 7 passwords: net user Mosoh 123456 and enter, it will show you a message that" the command completed successfully.

  5. Restart your computer, then you can log in as Mosoh with the password 123456. You can go to control Panel to change your account password if necessary. Any question you can turn to the following page:http://goo.gl/PdHJXd

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.