Change a password in Windows Vista or 7
If you've been locked out of your account due to a changed or forgotten password, you can change it using an exploit. You'll needa bootable CD that will allow you to edit files on a command line.
- Boot your computer via a bootable CD.
- (DOS environment) Bring up a command prompt and go to C:\Windows\system32\.
(UNIX environment) Switch to the partition where the OS is installed and work your way into the Windows directory then the system32 directory. - Look for sethc.exe
- Make a backup by copying sethc.exe to sethc_backup.exe
- Delete the original sethc.exe
- Copy cmd.exe to sethc.exe
- Restart and let the computer boot into Windows.
- Click on the Ease of Access button at bottom-left
- Turn on Sticky Keys
- On your keyboard press the shift key 5 times.
- A command prompt should appear.
- At the prompt type in net user username new_password where username is the name of the user account to edit and new_password is the new password you'd like to set.
- Exit the command prompt.
- Try logging in with the newly created password.