Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Windows Os 7 admin user password reset!!!  (Read 4331 times)

0 Members and 1 Guest are viewing this topic.

sajay

  • Guest
Windows Os 7 admin user password reset!!!
« on: March 22, 2015, 04:16:55 am »
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
============================

Run the command
====================================
net user administrator * in the command prompt.
======================================

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. This 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.

Thank you