You can do this numerous ways, but to recover your account try the below steps.
-
Boot the Windows 7 install DVD
-
When the "Install Windows" page comes up, click Next
-
In System Recovery Options click Command Prompt
-
In the command prompt type in regedit
-
In the left side of the Registry Editor click on “HKEY_LOCAL_MACHINE”
-
Then click File > Load Hive
-
Enter NaV\system32\config\SAM under File Name and press open
-
Enter a name for the hive(adminfix)
-
Navigate to “HKEY_LOCAL_MACHINE\adminfix\SAM\Domains\Account\Users”
-
Select the foler “000001F4”
-
In the right side pane double-click the “F” entry.
-
In the Edit Binary Value window change the value after “0038” which should be “11”, change it to “10”.
-
Make sure not to modify anthing else (spaces, other values, etc)
-
Click OK
-
Select the hive that we loaded earlier (adminfix)
-
Then click File > Unload Hive
-
Restart the computer
-
Log in with the administrator account and modify your user password