Reset Administrator Password in Windows Vista or Windows 7
It might happen that your friends or someone may put or change the Administrator password on your computer just to have fun see you react when the incorrect password error pops up. And the worst part would be that they themselves forget what password they had applied. Now you're left with a computer whose password you don't know and you've got to work on some very important stuff. Most people by this point of time would have got ready to re-install the OS. But wait! There is a way to reset the Admin password without re-installation or even if you don't have Windows Password Reset Disc. Follow the steps mentioned below to reset the password:
All you need to reset the password is the Operating System Disc and a few simple commands.
Step 1: Boot from Windows disc.
First of all boot your computer from the Windows OS Disc. After the initial POST is complete, it will ask to "Press any key to boot from CD or DVD" , hit any key on your keyboard to enter the Windows installation process (If in case it doesn't show the "press any key" screen and start loading the OS, then you will have to change the boot priority in the computer's BIOS).
Step 2: Entering Command Prompt from WinRe.
Once windows has copied all the files, it would start the Windows installation, where on the first screen it would ask to select the language, currency and keyboard input method.
Click on "next" to proceed to the next screen where there will be options to "Install Windows", "What to know before installing windows" and " Repair your computer".
Click on " Repair your computer".
Follow through until you get the WinRe ( Windows Recovery Environment ) screen where you'll have an option to enter the Command Prompt.
Step 3: Typing Command into Command Prompt.
Click on Command Prompt which will open the CMD console window. Here, you will have to type the following commands.
Enter this command first to take a backup of the sticky keys file:
Next, type the following command to copy the CMD executable file over top of the sticky keys executable:copy c:\windows\system32\sethc.exe c:\
copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
Now you can reboot the computer.
Step 4:Resetting the Password.
Once you've reached the login screen, hit the SHIFT key 5 time and voila! It will open the CMD console window in administrator mode.
Type in the following command to enable the Built-in Administrator account:
net user administrator /active:yes
Now, reboot your computer and once it reaches the login screen, you will see an administrator account as a choice.
Log into the administrator account and change or remove the windows login password for your user .
( Note: The Built-in Administrator account is NOT password protected.)
Once you have made the necessary changes, logoff from the admin account and login to your user account. Now, disable the Built-in Administrator account from showing itself at the login screen by typing in the following command in command prompt:
net user administrator /active:no
Step 5: Restoring the sticky keys file.
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.