Recovery Windows Password 

Reset Windows 7 Password with Windows Installation CD 

May 29th, 2012 by  


Leave a reply »  

Forgot Windows 7 password and can’t log on your computer? I’m going to show you a really easy way to reset Windows 7 password, without having to buy or download any third-party software. 

Note:  This trick is only intended for experienced users who forgot Windows password.  For average computer users, please use the professional software – Reset Windows Password – to reset lost or forgotten Windows 7 password. 

Step 1 

In order to do this, you must have a Windows installation CD or DVD. Any Windows 7, Vista or XP CD or DVD will work. 

First you have to boot from the installation CD. Most PC’s are already set up to use the CD/DVD drive as the first boot device, which means you only have to insert the CD/DVD and restart the PC. Before Windows begins to load, you will see a message that says “press any key to boot from CD”, just press any key. However, if your PC is not set up to boot from the CD/DVD first, you will have to set it as your first boot device in the BIOS setup. If you don’t know how, it’s really easy. Soon as you turn your PC on, you can enter the BIOS setup by pressing the DEL key. Although you would normally use the DEL key, the key you have to press varies from PC to PC, but it will either be the DEL, F1, F2, ESC, or F10 key. 

You have to be quite quick while doing this. The most sure-fire way of doing it correctly would be to turn your PC on and keep pressing the button until you get the BIOS screen. 

Once you’re at the BIOS screen, navigate through the menus looking for something like “1st boot device, 2nd boot device”, or anything related to boot order. It is different with each PC, but it’s really strait forward. You should set the first boot device as the CD/DVD drive, and the second as your HDD (Hard Disk Drive). It wont matter what the third or fourth are. 

Step 2 

How that you’ve booted from the CD, you will have to option to install or repair Windows, click repair your computer. You will see various option as shown in the image bellow, click Command Prompt. 

Step 3 

Now that you’re in the command prompt, we are going to use a couple of commands that will allow you to reset Windows 7 Password

First type copy c:\windows\system32\sethc.exe c:\ 

Next type copy /y c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe 

Now reboot the PC (remember to take the installation disk out) 

Step 4 

So you’ve restarted your PC and you’re at the login screen. Press the Shift key 5 times to bring up the command line interface. Now type net user your_name your_new_password. 

For example, if the name of the account you want to reset the password for is called Duncan05 and the password you want to change to is Pass1234, you would type net user Duncan05 Pass1234. 

That’s it, you can now login! 

Note: The command we used earlier copied over the sethc.exe, replacing it with cmd.exe, which is why we were able to access the command line at the login screen. However, the first command we used backed up the sethc.exe the hard-disk. To restore it in Windows, go the Start Menu and type cmd in the search box. Then in the results, right-click “cmd” and then choose “run as administrator”. 

You can the use the command c:\sethc.exe file back to c:\windows\system32\sethc.exe to restore the original sethc.exe file. 

Sethc.exe is used to invoke accessibility options through the Shift key. However, you will not have any issues if you decide not to restore the original file. 

This trick is very useful when you forgot Windows 7 password

From <>  

Step-by-Step Guide to Resetting a Windows 7 Password  

  • Share  
  • Pin  
  • Email  



by Tim Fisher  

Updated October 19, 2016  


of 18 

Boot From a Windows 7 Install Disc or Flash Drive 

© webphotographer/E+/Getty Images  

There are a number of roads you can take when you need to hack into your own Windows 7 computer, some of which you may have already read about in my I Forgot My Windows 7 Password! Is There Anything I Can Do? article. Of them all, one of the most successful strategies is the one I’m about to walk you through here. 

While this password reset procedure for Windows 7 would classify as a “hack” of sorts, there’s no software to download or extraordinary computer skills required. If you can follow directions, you can reset your Windows 7 password this way. 

Note: I created this step by step tutorial to accompany my original How To Reset a Windows 7 Password how-to guide. There are a number of relatively complicated steps involved in resetting your Windows 7 password this way so screenshots with very detailed instructions will make the process much easier. However, if you’re familiar with executing commandsbooting from portable media, and working with Windows 7 recovery tools, then you’ll probably do fine with the more brief directions. 

To begin, you’ll need to boot from a Windows 7 Setup disc or flash drive. If you’re booting from a disc, watch for the Press any key to boot from CD or DVD or similar message and be sure to do that. 

If you’re watching closely, you may catch a Windows is loading files screen. If you see that, or an Install Windows screen, or a System Recovery Options screen, you’re in good shape and can continue on to the next step. 

Don’t Have a Windows 7 Disc/Drive or Need Help Booting From One? 

If you’re not familiar with booting from something other than your hard drive, see my tutorials on How to Boot From a CD, DVD, or BD Disc or How to Boot From a USB Device, depending on what sort of media you’re using. Most issues getting the computer to boot from a disc or flash drive instead of the hard drive are solved by making boot order changes in BIOS. See my How to Change the Boot Order in BIOS tutorial for help with that. 

If you don’t have a Windows 7 disc or flash drive, it’s perfectly acceptable to borrow a friend’s or use one from another Windows 7 computer since you’re just using it for diagnostic purposes. In other words, don’t worry at all about using someone else’s media – you won’t be entering any ​product keys or invalidating yours or another computer’s activation as part of this process. 

Tip: A Windows 7 system repair disc will work fine for this too. If you don’t have access to a Windows 7 Setup disc or flash drive, and don’t already have a system repair disc, you can create one for free from any other working Windows 7 computer with an optical drive. See How to Create a Windows 7 System Repair Disc for help. 

Advanced Tip: If even a system repair disc isn’t an option, you may still be able to follow this tutorial, for the most part, using any bootable recovery media that gives you write-level access to the hard drive. This includes popular third-party bootable recovery media, installation or recovery media designed for later versions of Windows, etc. 


of 18 

Click Next 

Windows 7 Install Windows Screen.  

On the Install Windows screen with the big Windows 7 logo on it, check that the language, time, and keyboard options work for you and then click on the Next button. 

(No, just as a reminder, you’re not going to install or reinstall Windows 7 as part of the password reset process.) 

Note: If you booted from a Windows 7 System Repair Disc, what you’ll see here instead is a small System Recovery Options window with just a keyboard option. Click Next>

Important: If you’re looking at your Windows 7 login screen right now, it means that your computer booted “normally” from the hard drive as it always does, not from your disc or flash drive that you intended to boot from. Look back at Step 1 and for some help on solving this problem. 


of 18 

Click on Repair Your Computer 

Repair Your Computer Option for Windows 7.  

Once again you’re at the Install Windows screen with the Windows 7 logo. This time, however, you have an Install now button and some options at the bottom. 

Click on the Repair your computer link, right above the Microsoft copyright note at the bottom of the screen. 

Note: You won’t see this screen if you booted from a Windows 7 System Repair Disc. If that’s what you’re using, just move on to the next step. 


of 18 

Wait While Your Windows 7 Installation Is Found 

Windows Installation Search in System Recovery.  

Next, you’ll see two windows, both labeled System Recovery Options, one on top of the other. The one on top says Searching for Windows installations…

All you need to do here is wait but I wanted to show you what the process looks like. Once this screen disappears, you can move on to the next step. 


of 18 

Note Your Windows Location & Click Next 

Operating System List System Recovery Options.  

Now that the small window with the progress bar is gone, jot down the drive letter shown under Location. On most computers, this will be D: but yours could be different depending on how Windows 7 was originally set up. 

Note: While you may be used to seeing the drive Windows 7 is installed on as C: while working from within Windows, most computers are set up with a small recovery drive that’s normally hidden from view. Since drive letter assignment is dynamic, and this small hidden drive is visible when working from System Recovery Options, your main drive has probably been assigned D:, the next available drive letter. 

Once you’ve committed that drive letter to memory, select Windows 7 from the Operating System column and then click the Next> button. 

Tip: Don’t worry if nothing is listed under Operating System. System Recovery Options needs to locate Windows 7 only if you plan on performing certain operating system repair tasks, none of which we’ll be doing as part of this password reset process. In any case, be sure to select the Use recovery tools that can help fix problems… radio button before clicking Next>


of 18 

Choose Command Prompt 

Command Prompt System Recovery Option.  

From the list of recovery tools available on System Recovery Options, click on Command Prompt


of 18 

Execute These Two Commands 

Command Prompt in System Recovery Options.  

Now that Command Prompt is open, type the following command exactly as shown and then press Enter

copy d:\windows\system32\utilman.exe d:\ 

In case it’s not clear, there are only two spaces in this command: between copy and d:\ and between exe and d:\

Assuming the command was executed correctly, the text 1 file(s) copied. should have appeared directly under the command string and you should now be at a prompt again. 

Next, type this command exactly as shown and press Enter

copy d:\windows\system32\cmd.exe d:\windows\system32\utilman.exe 

In this command, there are also only two spaces: between copy and d:\ and then between exe and d:\. This time, however, you’re presented with a question after executing the command: 

Overwrite d:\windows\system32\utilman.exe? (Yes/No/All): 

Type Y or Yes at the flashing prompt and then press Enter. As with the last command, you should see the 1 file(s) copied. confirmation. 

Important: If the Windows 7 drive letter you noted in Step 5 was something other than D:, swap out all instances of d in the commands above with whatever drive letter you noted. 

What Did I Just Do? 

The first command made a backup copy of the utilman.exe file so you can restore it later. 

The second command copied the cmd.exe file overtop the ​utilman.exe file. This action is what makes this whole Windows 7 password reset trick work. You’ll undo this later. 


of 18 

Remove the Boot Media & Press Restart 

Restart Button in System Recovery Options.  

Now that the two commands have been successfully executed, remove the Windows 7 disc or flash drive you booted from in Step 1. 

Next, close the Command Prompt window and then click on the ​Restart button at the bottom of the System Recovery Options window. 


of 18 

Wait While Your Computer Restarts 

Windows 7 Splash Screen.  

There’s nothing to do here but wait for your computer to restart and for the Windows 7 login screen to appear. 

Just so you know, I don’t make do-nothing steps just for fun. I included this in my walkthrough because many people overlook the bit in Step 8 where I tell you to remove the Windows 7 disc or flash drive

While this might have sounded unnecessary, what usually happens if you forget to remove it is that the Windows 7 setup or repair process begins again, as you saw in Step 2. That’s exactly what you wanted then, but right now you should be booting from your hard drive, as you normally do. 

So, if you’ve found yourself back where you started, just remove the disc or flash drive and restart. 


of 18 

Click the Ease of Access Button 

Windows 7 Ease of Access Button.  

You should now have reached your Windows 7 login screen. No, your password is not reset yet, but we’re about to do just that. 

See that little icon on the bottom-left of the screen?​ Click it! 

Typically, the Ease of Access ​menu appears after pressing this button. However, because we replaced the file representing that tool, utilman.exe, with cmd.exeCommand Prompt appears instead! 


of 18 

Reset Your Password Using Net User 

Net User Command in Windows 7.  

Now that Command Prompt is open, you can reset your Windows 7 password to anything you’d like using the net user command

The net user command is a really easy command to use. Just execute it like this: 

net user username password 

…replacing username with your Windows 7 account name, and password with your desired new password. 

For example, I might change my password to n3verE@Tsn0W by executing the net user command this way: 

net user Tim n3verE@Tsn0W 

Assuming everything was executed properly, you should have been greeted with a The command completed successfully. message after pressing Enter. 

Tip: There are spaces between netuser, the username, and the password. If your username has a space, like Tim Fisher, use quotes. Reusing my example above but with my full name as my username, I would have executed net user “Tim Fisher” n3verE@Tsn0W

Not Sure What Your Username Is? 

If you were the last person to log in to Windows 7 before forgetting your password, your username should be listed right there on the login screen. You can see Tim in big, bold letters in the screenshot above. 

However, if you’re resetting the password to another user on the computer and aren’t sure exactly what the username is, you can generate a list by executing the net user command without options, for example: 

net user 

A list of all of the users on the computer will be generated right in the Command Prompt window, which you can then reference for proper spelling when changing the password as described above. 


of 18 

Log in to Windows 7 With Your New Password 

Windows 7 Logging On.  

Finally, we’re at the exciting part! 

Close or click away from the open Command Prompt window and then click in the Password field. 

Enter your new Windows 7 password you set in Step 11 and then press Enter or click the little arrow button. 

Welcome back to your computer! 

Tip: If you’re again prompted with a The user name or password is incorrect message, click OK and repeat Steps 10 & 11 again. 


While it may be very tempting to call it quits right now, it’s important that you now take the necessary steps to: 

  1. Prepare for the future event of forgetting your password again so you don’t have to go to all this trouble next time. 
  2. Undo the couple of things that made this password reset trick work. 

That’s what we’ll do over the next several steps. 


of 18 

Create a Windows 7 Password Reset Disk 

Windows 7 Password Reset Disk.  

The Windows 7 password reset procedure I just walked you through is perfectly safe but it isn’t exactly “Microsoft approved.” The only Microsoft sanctioned password reset procedure for Windows 7 involves using a password reset disk

Unfortunately, this wasn’t an option in your original situation because you have to have access to Windows 7 under your account to create one of these disks. In other words, it’s a proactive step. Now that you can access Windows 7 normally, you can create one and never be caught in a situation like this again. 

See How to Create a Windows 7 Password Reset Disk for a complete tutorial. 

Open that link up in a new window or bookmark it for later but please remember to do it! You only have to make a password reset disk once. It’ll still be good no matter how many times you change your Windows 7 password and trust me, it’s much easier to use than the procedure you just followed to reset your password this time. 

In the next several steps of this walkthrough we’ll undo the hack that allowed you to reset your Windows 7 password. Undoing the changes we made will not undo the password change


of 18 

Access Command Prompt From Your Bootable Media Again 

Command Prompt System Recovery Option.  

To reverse the changes you’ve made, you’ll need to again access Command Prompt via your Windows 7 media. 

Here’s a quick summary in case you forgot: 

  1. Insert your bootable Windows 7 media. 
  2. Click the Next button. 
  3. Click the Repair your computer link. 
  4. Wait while Windows is found on your hard drive. 
  5. Select Windows 7 and then click Next
  6. Click on Command Prompt

Tip: If you need more detailed help, my summary is referring to Steps 1 through 6 in this walkthrough, which you can reference again. 

Do I Really HAVE to Undo These Changes? 

No, no one says you have to. However, I strongly suggest that you do, for two reasons: 

  • Having access to Command Prompt from the login screen is a major security concern. If anyone finds out that Command Prompt is accessible this way, he or she could very easily change your password to access your account and delete your most important files, among other serious things. Reversing the changes you made removes this easy access. 
  • The Ease of Access tools that are supposed to show up when you click that button on the login screen are there for a good reason. You never know when you, or another person using your computer, might need to take advantage of them. 

Hopefully, you decide to take a few extra minutes and complete the next steps. 


of 18 

Execute This Command 

Command Prompt in System Recovery.  

With Command Prompt now open, type the following command exactly as shown and then press Enter

copy d:\utilman.exe d:\windows\system32\utilman.exe 

As with the previous commands, there are only two spaces here, between copy and d:\ and between exe and d:\. Remember to change the d: to whatever drive Windows 7 is installed on if you need to, just like you may have done in Step 7. 

After pressing Enter, you’re presented with the following question: 

Overwrite d:\windows\system32\utilman.exe? (Yes/No/All): 

Type Y or Yes to confirm the overwrite and then press Enter. Assuming things went as planned, you should see the 1 file(s) copied. confirmation. 

What Did I Just Do? 

What you just did was copy the utilman.exe backup that you created using the first command in Step 7 back to its original location. In other words, you took things back to the way they were before you started this tutorial. 


of 18 

Remove the Boot Media & Press Restart 

Restart Button in System Recovery Options.  

Now that you’ve restored the utilman.exe file to its rightful place, remove the Windows 7 disc or flash drive you booted from in Step 14. 

Next, close the Command Prompt window and then click on the ​Restart button at the bottom of the System Recovery Options window. 


of 18 

Wait While Your Computer Restarts 

Windows 7 Splash Screen.  

Wait while your computer restarts. 

As I mentioned the last time you restarted after using your Windows 7 bootable media, you want your computer to start normally so make sure the flash drive or disc has been removed. 


of 18 

Verify That Ease of Access Works at the Login Screen 

Ease of Access in Windows 7.  

Remember that little icon you clicked on back in Step 10? Click on it again. 

This time, however, instead of seeing Command Prompt, you should see the Ease of Access screen. This is the normal behavior of this button and seeing it confirms that you successfully reversed the changes you made to make this Windows 7 password reset hack work. 

Congratulations! You’re done! 

You can now close the Ease of Access window and log in to Windows 7. 

Important: Please remember to create that password reset disk I talked about a few times. It’s really easy to do and then makes it really easy to reset your Windows 7 password in the future. See How to Create a Windows 7 Password Reset Disk for help.