This is a more advanced if you forgot Windows 7 password, "obscure" trick that exploits a vulnerability in Windows 7. It works by replacing the Sticky Keys program (which opens when you press Shift five times) with a command prompt.
Important Note: This method requires access to a Windows 7 installation disc or a recovery drive to perform the initial file replacement. However, the search results describe a clever way to access the necessary command prompt without a disk, using only the Windows Recovery Environment (WinRE) which is built into your hard drive.
Here is the process if forgot Windows 7 password:
1. Access Windows Recovery Environment (WinRE): Turn on your computer. As soon as the "Starting Windows" logo appears, press and hold the power button to force a shutdown. Do this two or three times. On the next boot, Windows will display a message saying "Starting Windows Repair" or something similar. Let it run.
2. Open Command Prompt from Recovery: The system recovery tool will open. Let it try to find problems, and then click Cancel. In the next window, click on "View problem details" at the bottom. A text file will open. Click File in the text editor, then Open.
3. Navigate and Rename Files: In the "Open" dialog, change the file type to "All Files". Navigate to C:\Windows\System32. Find the file named sethc. exe. Right-click it and rename it to something like sethc.bak.
4. Replace the Program: Now, find the file named cmd.exe. Right-click it and select Copy. Then, right-click in an empty space in the same folder and select Paste. A new file called cmd - Copy .exe will appear. Rename this copied file to sethc .exe.
5. Close Everything and Restart: Close the open windows and click Restart.
6. Reset Your Password: When the login screen appears, press the Shift key five times. Instead of Sticky Keys, a command prompt window will open.
7. Use the Command: At the command prompt, type net user yourusername new password and press Enter. Replace "yourusername" with your actual account name and "new password" with your desired password. If you don't know your username, type net user to list all accounts.
8. Log In: Close the command prompt window and log in with your new password.