sodcalculator

10 Tech How-To

Recover Deleted Admin Account in Windows 11

Guide 10-44837 · Updated · Step by step

Losing the only administrator account on a Windows 11 PC can lock you out of system settings, app installations, and file access. This guide walks you through practical recovery methods—using built-in recovery tools, Safe Mode, and the hidden built-in Administrator account—so you can restore admin privileges without reinstalling Windows.

What You’ll Need

  • Access to another administrator account on the same PC (if one exists).
  • A Windows 11 installation USB drive or recovery drive (for some methods).
  • Another working computer to create the USB drive if needed.
  • Your Microsoft account credentials (if your admin account was linked to one).

Step-by-Step

Method 1: Use Another Administrator Account

  1. Log in to any other account that has administrator privileges.
  2. Press Win + X and select Computer Management.
  3. In the left pane, expand Local Users and Groups and click Users.
  4. Right-click the deleted account name (if it still appears) and select Properties.
  5. Uncheck Account is disabled if it is checked.
  6. If the account is gone entirely, right-click an empty area in the Users folder and choose New User. Enter the same username and password, then click Create.
  7. Right-click the new user, select Properties, go to the Member Of tab, and add Administrators to the group list.
  8. Log out and sign in with the recovered account.

Method 2: Enable Built-in Administrator in Safe Mode

  1. Restart your PC. When the sign-in screen appears, hold Shift and click the Power icon, then select Restart.
  2. After the PC reboots, choose Troubleshoot → Advanced options → Startup Settings → Restart.
  3. Press 4 or F4 to boot into Safe Mode.
  4. On the sign-in screen, click the Administrator account (it may be hidden; if not visible, press Ctrl + Alt + Del twice and type .\Administrator as the username).
  5. If prompted for a password, try leaving it blank. If that fails, you may need to reset it via a password reset disk or another method.
  6. Once logged in, press Win + X and select Computer Management.
  7. Go to Local Users and Groups → Users. Right-click the deleted account (if listed) and select Properties. Uncheck Account is disabled.
  8. If the account is missing, create a new user as described in Method 1 and add it to the Administrators group.
  9. Restart normally and sign in with the recovered account.

Method 3: Use a Windows 11 Installation USB

  1. Create a Windows 11 installation USB on another computer using the Media Creation Tool from Microsoft.
  2. Boot from the USB. When the setup screen appears, press Shift + F10 to open Command Prompt.
  3. Type regedit and press Enter.
  4. In Registry Editor, click HKEY_LOCAL_MACHINE to highlight it.
  5. Go to File → Load Hive. Navigate to C:\Windows\System32\config and select the SAM file. Give it a name like temp.
  6. Navigate to HKEY_LOCAL_MACHINE\temp\SAM\Domains\Account\Users\Names. Look for your deleted account name. If it exists, note the key’s name (like 000001F4).
  7. If the account is missing, you can’t recover it this way; you’ll need to create a new one via the same registry hive or use another method.
  8. To enable the built-in Administrator, go to HKEY_LOCAL_MACHINE\temp\SAM\Domains\Account\Users\000001F4 (the Administrator account). Double-click F in the right pane.
  9. In the binary data, find the byte at offset 0x38 (the 11th byte from the right). Change its value from 11 to 10 (this enables the account).
  10. Click OK, then select File → Unload Hive. Close Registry Editor and Command Prompt, and restart the PC.
  11. At the sign-in screen, click the Administrator account (it should now be visible). Log in with a blank password (or set one later).
  12. Once logged in, use Computer Management to create a new admin account or re-enable your old one if it appears in Users.

Method 4: Use System Restore (if available)

  1. Boot into Advanced Startup (Shift + Restart as in Method 2).
  2. Choose Troubleshoot → Advanced options → System Restore.
  3. Select a restore point that was created before the account was deleted.
  4. Follow the prompts to restore your system. This may bring back the deleted account if the restore point contains it.
  5. After restoration, log in with the recovered account.

Common Mistakes

  • Assuming the account is gone forever—often it is only disabled or the profile is hidden.
  • Forgetting the built-in Administrator is disabled by default—enabling it via registry is a reliable way to get in.
  • Typing the username incorrectly—Windows usernames are case-insensitive but must match exactly (e.g., Admin vs admin).
  • Not checking if another admin account exists—sometimes a hidden or secondary admin is still available.
  • Skipping the password reset—if you don’t know the password, you’ll need to reset it using a password reset disk or by booting from installation media.

Tips

  • Always create a separate administrator account as a backup, even if you use a standard account daily.
  • Keep a password reset disk (for local accounts) or ensure your Microsoft account password is recoverable via email/phone.
  • Use a Microsoft account for your admin account—it makes password recovery easier.
  • Regularly create system restore points so you can roll back changes.
  • If you use the registry method, back up the SAM hive before editing.

Troubleshooting

  • Built-in Administrator won’t appear—If the registry edit didn’t work, double-check the offset and value. Ensure you unloaded the hive before restarting.
  • Password not accepted—For the built-in Administrator, the password is usually blank. If not, you may need to reset it via a password reset tool or by using the installation USB to run net user administrator * in Command Prompt.
  • Cannot access Computer Management—If you’re in Safe Mode and still lack admin rights, try the registry method or use the installation USB.
  • System Restore fails—Try a different restore point, or use the sfc /scannow and DISM commands from Command Prompt to repair system files.
  • Account still missing after recovery—If the profile is corrupted, you may need to create a new user and migrate your files from the old profile folder (usually C:\Users\[oldname]).

Frequently Asked Questions

Can I recover a deleted admin account without a password?

Yes, if you can access the built-in Administrator (via Safe Mode or registry) or another admin account, you can reset the password or create a new account.

Is the built-in Administrator account always available?

No, it is disabled by default. You can enable it using the registry method or by booting from installation media.

Will my files be lost if the admin account is deleted?

Usually not. The user profile folder (C:\Users\[username]) often remains, even if the account is gone. You can access it with another admin account.

Can I use a Microsoft account to recover a deleted local admin?

If your admin account was linked to a Microsoft account, you can reset the password online and sign in again. If it was a local account, you’ll need another method.

What if I don’t have a Windows installation USB?

You can create one on another computer using Microsoft’s Media Creation Tool. Alternatively, try Safe Mode or System Restore.

Is it possible to recover a deleted admin account if I’m the only user?

Yes, as long as you can boot into Safe Mode or use installation media to enable the built-in Administrator. From there, you can create a new admin account.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →