View Sidebar

A Million Little Pieces Of My Mind

I Lost My Windows 7 Password

By: Paul S. Cilwa Viewed: 7/22/2024
Posted: 11/30/2016
Page Views: 925
Topics: #Windows7
How to get back into Windows 7 if you've forgotten your password.

If you are still running Windows 7—which many people are—and you have secured it with a password (recommended if you are using a laptop or live in a household with people you don't trust), inevitably you will need to get into it on a day when you cannot remember your latest password. (This usually happens the day after changing it.) Fortunately, there is a way, tricky though it may be, to change it.

  1. With your computer turned on (presumably on the login page you can't get past), turn off the power. You can do this either by holding your computer's front power button in for about 5 seconds (until the lights go out), or by simply pulling the plug.

    The reason for doing this is to make Windows think there's a problem.

  2. Turn the computer back on. This screen should appear:

    With LAUNCH STARTUP REPAIR highlighted, press the Enter key.

  3. The Windows 7 Startup Repair app will start, and will ask if you want to use System Restore. You do not. Please press Cancel.

  4. Allow Windows 7 five to ten minutes to do its repair thing. Eventually, though, a dialog will appear informing you that the repair failed. Don't worry. This was all part of the plan!

    Click the drop-down button that says View Problem Details, and scroll all the way to the bottom. At the bottom, there will be an link to a text file, erofflps.txt. Click the link, which will start Notepad.

  5. This was actually just a trick to get Notepad running; we don't really want that file. Instead, click File..Open and navigate to your Windows drive (it will not be drive C as usual, because Windows 7 is in repair mode). Navigate to Windows\System32. On Notepad's Open Dialog's Files of Type dropdown, select All Files. Then look for the application file, sethc.

    Now, by clicking a second time (not a double-click), you can change the name of that file. Change it to sethc_bak.

  6. Scroll upwards and find the file cmd. Right click and select Copy, then Paste. Change the name of the copy from cmd - Copy to sethc. Then cancel out of the dialogs. On the last one, click Finish. That will cause your computer to shut down.

  7. Restart the computer. You still can't log in, but what we've done in the previous steps is replace the "sticky keys" feature with the command prompt program. So, press your Shift key five times in rapid succession. That would normally activate the sticky keys; but because of what we've done instead it will activate the command prompt.

  8. At the command prompt, type in the Net User command to get a list of all users listed on this computer.

    >net user

    Find the administrator user whose password you need. Let's say the user's name is Paul. You will then type the following:

    >net user Paul *

    That will present a prompt to change user Paul's password.

  9. Close the command prompt and use the new password to log in to Windows 7.

  10. Clean up: Using File Explorer, return to Windows\System32, delete sethc and change sethc_bak back to plain sethc.