Sign up ×
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 Aug 2 '12 at 2:32

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

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 at 4:35

3 Answers 3

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:
and here

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

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.