In case you forget your windows administrator account password, you can change it without using any password reset software.
What we need to do is, rename the file cmd.exe to sethc.exe, which is in C:\windows\system32 and run the command net user administrator * in the command prompt.
What we need to do is, rename the file cmd.exe to sethc.exe, which is in C:\windows\system32 and run the command net user administrator * in the command prompt.
How to do this ?
If you are not an admin privileged user then it is not easy to rename the files under the directory C:\windows\system32. So we need to boot from other OS to rename the file. You can do this using any linux live CD or the Windows installation CD. (Note:- please take a backup of the files cmd.exe and sethc.exe to another location. If you loose those files, you can restore it after the password reset)
Windows 7 installation CD will let you launch a command prompt. Type the following command to create a copy of sethc.exe
copy c:\windows\system32\sethc.exe c:\
Type this command to replace sethc.exe with cmd.exe
copy /y c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
After renaming the file, boot in to the windows OS and after you see the login screen, press the shift key 5 times. Then you can see the command prompt with admin privilege. (By default this will prompt you the sticky key feature. This is the only feature which can be used before logging into any user account. By default, pressing the shift key 5 times will start the sethc.exe. But in this situation we have renamed the cmd.exe file to sethc.exe so this action must start the command prompt.)
Once you have reached on the command prompt, you can run the command
net user administrator *
After run the command it will ask you a new password for the account.
Set the new password for the admin account. (The good thing is, it will not ask you the old password for the confirmation).
If the admin account is not active, you can activate it by running the command net user administrator /active:no
Now, you can login to the administrator account with the new password.
No comments:
Post a Comment