*** To do this you would need Windows Vista or Windows 7 setup DVD ***
- Start Windows RE by booting the Windows Vista or Windows 7 setup DVD and then selecting “Repair” instead of “Install Windows.”
- Click on the Command Prompt.
- Type C: (or D: for your Windows OS) .
- Type the following command ( replace “c:” with the correct drive letter ) : copy c:\windows\system32\sethc.exe c:\
- Type this command to replace sethc.exe with cmd.exe : copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
- Reboot your computer and start the Windows installation where you forgot the administrator password.
- After you see the logon screen, press the “SHIFT” key five times.
- You should see a command prompt where you can enter the following command to reset the Windows password : net user you_user_name new_password
- If you don’t know your user name, just type net user to list the available user names.
- You can now log on with the new password.
Then reboot your system. Done