Logging into the system without an administrator password is not a daily event, but it is not an exceptional event either. The password can be forgotten or lost, and the only user needs a working computer. The only solution is to reset your password.
Necessary
Windows 7 installation disc or system repair disc
Instructions
Step 1
Boot your computer from the installation disc.
Step 2
Click the "Next" button in the window for selecting language settings.
Step 3
Select the Command Prompt box in the new System Recovery Options window.
Step 4
Type regedit into Command Prompt and press Enter to enter Registry Editor.
Step 5
Select the HKEY_LOCAL_MACHINE value from the list on the left side of the program window.
Step 6
Specify the Load Hive command from the File service menu of the Registry Editor window.
Step 7
Select the drive with Windows installed and open the SYSTEM file with the path WindowsSystem32configSYSTEM.
Step 8
Type a name (optional) for the boot section of the registry hive.
Step 9
Go to the created registry key (Setup subfolder) and select CmdLine with a double mouse click.
Step 10
Enter cmd.exe and click OK.
Step 11
Select SetupType and replace 0 with 2. Press OK again.
Step 12
Point the previously created registry key to HKEY_LOCAL_MACHINE and select the Unload Hive command from the File menu of the Registry Editor window.
Step 13
Remove the installation disc, close the Registry Editor and the Command Prompt.
Step 14
Apply the "Restart" button in the "Recovery Options" window.
Step 15
Enter the value net user username new_password in the field of the command line that opens after the restart is completed to reset the password.
Step 16
Confirm your choice by pressing Enter.
Follow these steps to create an account with administrator rights.
Step 17
Enter net user username password / add in the command line field to create a new user account. Press the Enter key.
Step 18
Enter net localgroup Administrators username / add in the command line field to add the created user to the Administrators group. Press the Enter key.
Step 19
Enter net localgroup Users username / delete in the command line field to remove the user from the Users group. Press the Enter key.
Step 20
Quit Command Prompt and log in.