Locked out of Admin Account

administratorelevationuacuser-accounts

I created an admin account in windows 7. Did the "Special Accounts" registry edit to hide the admin account. Changed the current logged in user to a standard account and restarted the computer. The admin account is hidden but now I cannot use UAC to run things in elevated mode (run as admin). When I try it says I should type an admin password but since the admin account is hidden, there is no option to type a password and the yes button is greyed out. The built-in Administrator account is hidden as well (even in safe mode).

I just wanted to have an admin account to elevate from (without touching the default one) within a standard account as needed. Can someone help please? I'm on Windows 7 Home Premium 64-bit. I have no accessible admin account. The only accessible account I have is a regular user account.

Best Answer

Since the problem is that you have added registry entries to hide the Administrator account, you have basically managed to make unavailable your only enabled administrator account. For reasons you have already found out, Windows takes special care to ensure that there is always at least one such functioning account, but you have found one way of circumventing all these safeguards.

So basically the problem is narrowed down to how to delete these registry entries without using regedit. They are found in the registry at the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList. Deleting the whole SpecialAccounts branch is probably the best.

There are numerous ways of modifying the registry in an unrestricted manner and without booting into Windows and numerous articles describing them. For example, this article details four such methods : 4 Ways to Edit Registry Key Values Without Booting into Windows.

  1. PC Regedit
  2. Hiren’s Boot CD and its Mini Windows XP feature
  3. Lazesoft Recovery Suite Home
  4. UBCD4Win

A fifth method, if you have a Windows installation disk or a System Repair Disc, is to boot from it into the Command Prompt and use regedit. See the article How to Reset a Windows Password in Regedit at Boot.

However, all of the above methods involve using a boot CD/USB. If, as you say, you currently don't have access to that, you are in a bad way. Please explain why you have that restriction.

Without being able to boot a CD or USB, the only other solution I can think of is to take the Windows system disk out of the computer, add it as a secondary disk in a functioning Windows 7 computer, and use its regedit to open the HKEY_LOCAL_MACHINE hive and delete the SpecialAccounts branch, as described in Load or Unload Registry Hives.

The HKEY_LOCAL_MACHINE\SOFTWARE hive is located in the file \Windows\System32\config\SOFTWARE. You need to open regedit, click on HKEY_LOCAL_MACHINE, then use the menu File -> Load Hive command. After editing, use File -> Unload Hive.

Related Question