Built-in Administrator account is missing from my Windows 11 Pro system

Jim Watson 45 Reputation points
2025-07-18T22:16:07.5966667+00:00

The built-in Administrator account is missing from my system.


Microsoft Windows Version 10.0.26100.4652 Microsoft Corporation. All rights reserved.
C:\Windows\System32>net user
User accounts for JIM-DESKTOP
DefaultAccount Guest Jim
WDAGUtilityAccount WsiAccount
The command completed successfully.

C:\Windows\System32>net user administrator /active:yes
The user name could not be found.
More help is available by typing NET HELPMSG 2221.

C:\Windows\System32>

How do I get it back?

Windows for home | Windows 11 | Accounts, profiles, and login
0 comments No comments

6 answers

Sort by: Most helpful
  1. Ramesh 179.6K Reputation points Volunteer Moderator
    2025-07-20T06:02:24.3066667+00:00

    You can try this.

    Create a System Restore Point.

    Download add_admin.reg and save it to the C:\ root.

    Boot into WinRE and run:

    reg load HKLM\SAM2 H:\Windows\System32\Config\SAM
    
    regedit.exe
    

    Import add_admin REG file using the File → Import option.

    Close Regedit.

    Run:

    reg query HKLM\SAM2\SAM\Domains\Account\Users\000001F4 >H:\sam_dump.txt
    
    reg unload HKLM\SAM2
    

    Post the output.

    Was this answer helpful?

    3 people found this answer helpful.

  2. Ramesh 179.6K Reputation points Volunteer Moderator
    2025-07-20T08:48:55.1566667+00:00

    Glad that helped.

    You can check the status of the account by running the following from Command Prompt after booting into Windows:

    net user administrator
    
    wmic useraccount get name, sid
    

    Also, follow up with a full system scan using ESET Online Scanner or Kaspersky Virus Removal Tool.

    Was this answer helpful?

    1 person found this answer helpful.

  3. Munkhu 2,690 Reputation points Independent Advisor
    2025-07-18T23:08:11.2133333+00:00

    Thank you very much for reaching out! As an Independent Advisor and fellow Microsoft user, I'm more than happy to assist you.

    Have you deleted it accidentally by any chance? Please try the steps below:

    1. Boot into Safe Mode and Attempt Activation
      • Restart your PC while holding the Shift key, then select Restart from the login screen.
      • Navigate to Troubleshoot > Advanced options > Startup Settings > Restart.
      • After restart, press 4 or F4 to boot into Safe Mode.
      • Once in Safe Mode, open Command Prompt as administrator (search for "cmd" and run as admin).
      • Run net user to list accounts again—check if "Administrator" appears.
      • If it does, enable it with net user Administrator /active:yes (note the capital 'A'—commands are case-sensitive).
      • If successful, restart normally and sign in as Administrator (it has no password by default; set one with net user Administrator *).
      • To disable later for security, use net user Administrator /active:no.
      If the account still isn't found, proceed to the next solution.
    2. Re-Enable via Registry Edit Registry edits can cause issues if done incorrectly. Make sure to create a system restore point first via Settings > System > About > Advanced system settings > System Protection.
      • Boot into Safe Mode or the Windows Recovery Environment (hold Shift during restart, then Troubleshoot > Advanced options > Command Prompt).
      • In the Command Prompt, type regedit and press Enter to open the Registry Editor.
      • Select the HKEY_LOCAL_MACHINE key, then go to File > Load Hive.
      • Navigate to C:\Windows\System32\config (replace C: with your system drive if different), select the SAM file, and open it.
      • Name the loaded hive something like "REM_SAM" and click OK.
      • Navigate to HKEY_LOCAL_MACHINE\REM_SAM\SAM\Domains\Account\Users\000001F4.
      • Double-click the F value on the right. In the data, go to line 0038, change the value from "11" to "10" (this re-enables admin status).
      • Click OK, then go to File > Unload Hive to save changes.
      • Exit Registry Editor and restart your PC.
      • After reboot, run net user Administrator /active:yes again to activate.

    Let me know if you're still having trouble.

    Was this answer helpful?

    1 person found this answer helpful.

  4. Ramesh 179.6K Reputation points Volunteer Moderator
    2025-07-20T04:02:02.7533333+00:00

    Boot into WinRE Command Prompt and run this command:

    bcdedit | find "osdevice"
    

    Note the OS partition's drive-letter. Suppose it's D:\

    Run:

    copy D:\Windows\System32\Config\SAM D:\SAM.bak
    
    reg load HKLM\SAM2 D:\Windows\System32\Config\SAM
    
    reg query HKLM\SAM2\SAM\Domains\Account\Users\Names
    
    reg query HKLM\SAM2\SAM\Domains\Account\Users
    
    reg unload HKLM\SAM2
    

    Post the output.

    Was this answer helpful?


  5. Ramesh 179.6K Reputation points Volunteer Moderator
    2025-07-20T03:17:45.0966667+00:00

    Please run the following command and post the output.

    wmic useraccount get name, sid
    

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.