Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

1  
Obligatory reminder: resetting your password (as opposed to changing it) will render anything encrypted using your Windows credentials unrecoverable. This includes things like files encrypted using EFS. – CBHacking Sep 30 '15 at 4:35

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

Use the "net user" command.

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

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


C:\>

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .