Forgetting your password is never any fun, but luckily there’s a really easy way to reset the password. All you need is a copy of the Windows installation disk. Boot off the Windows disk and select the “Repair your computer” option from the lower left-hand corner. Follow through until you get to the option to open the Command Prompt, which you’ll want to select. First you’ll want to type in the following command to backup the original sticky keys file: There are 2 methods explaining below :
METHOD 1
Type the following commands and press enter after each one:
• C: = CD Windows\system32 = ren cmd.exe cmd.old = ren magnify.exe cmd.exe
• ren cmd.old magnify.exe
4. Restart computer.
5. Click on Easy of Access centre left side bottom à Choose Magnify option.
A Command prompt opens up
7. Type: net user administrator /active:yes and press enter.
8. Restart the computer.
9. Logon on to the "Administrator" account, and then using User Accounts page in the Control Panel, remove or change the password of the other account.
10. Type Magnify.exe in Start Menu search box and press enter and open it.
11. Command prompt opens up
12. Type: net user administrator /active:no and press enter.
13. Restart the computer
NOTE: This will disable the administrator account.
14. Now, Boot to winRE again, and click on the Command Prompt option.
Type the following commands and press enter after each one:
• C: = CD Windows\system32 = ren magnify.exe cmd.old = ren cmd.exe magnify.exe
• ren cmd.old cmd.exe = exit
16. Restart the computer – system logs on to the User account without asking for password provided there is only one user account.
METHOD 2 –
copy c:\windows\system32\sethc.exe c:\
Then you’ll copy the command prompt executable (cmd.exe) over top of the sticky keys executable:
copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
Now you can reboot the PC.
Once you get to the login screen, hit the Shift key 5 times, and you’ll see an administrator mode command prompt.
Now to reset the password—just type the following command, replacing the username and password with the combination you want:
net user geek MyNewPassword
that’s all there is to it. Now you can login.
Of course, you’ll probably want to put the original sethc.exe file back, which you can do by rebooting into the installation CD, opening the command prompt, and copying the c:\sethc.exe file back to c:\windows\system32\sethc.exe.
To enable Administrator account
In the command line type “net user” and enter. This should display a list of accounts on the local computer.
Once you’ve seen the available accounts that can be activated, type “net user Administrator /enable:yes” and enter.