- Boot into a recovery environment/installer
- Open a command prompt
- Execute
regedit
- Select
HKEY_LOCAL_MACHINE - On the menu bar, select
File->Load Hive - Navigate to
<Windows Install Drive>:\Windows\system32\config\and loadSYSTEM - Give it a key name, such as
1234(this way this key block will live on top) - Expand
HKEY_LOCAL_MACHINE, and go into1234. - Select the
Setupkeygroup. - Set
CmdLinetocmd.exe. - Set
SetupTypeto2. - Select the
1234keygroup. - Navigate to the
Filemenu andUnload Hive.
Reboot the computer. You will be greeted with a command prompt.
- List the users:
net user - Create a new local user:
net user NAME PASSWORD /add(MakeNAMEwithout space). - Add the user to admin:
net localgroup Administrators NAME /add - Exit the shell: Type in
exitand hit enter.
Now you can log in with the local account.