0XC0000069

STATUS_LAST_ADMIN (0XC0000069) – Don't Kill Your Last Admin

Windows Errors Intermediate 👁 2 views 📅 Jul 16, 2026

Windows blocks you from deleting or disabling the last admin account. This error means you're about to lock yourself out. Simple fix: create another admin first.

What's Actually Happening Here

You tried to delete or disable a user account, and Windows threw 0XC0000069 (STATUS_LAST_ADMIN) right in your face. What's going on is that Windows has a safety lock: it won't let you remove the last account that can make admin-level changes. If it did, you'd be stuck with a machine you can't manage or even log into as an admin.

This pops up most often when you're cleaning up old accounts after a migration, or when you accidentally disabled the built-in Administrator and then tried to delete the only other admin user. I've seen it on Windows 10 22H2 and Windows 11 23H2. It's not a bug — it's a feature you'll thank later.


Fix 1: The 30-Second Fix – Create a Backup Admin First

This is the fix you should try first because it's literally the intended solution. Windows is telling you to make another admin before you nuke the last one.

Steps

  1. Open Computer Management (right-click Start → Computer Management, or run compmgmt.msc).
  2. Go to Local Users and GroupsUsers.
  3. Right-click empty space → New User. Give it a name like tempadmin, set a strong password, uncheck User must change password at next logon.
  4. Right-click the new user → PropertiesMember Of tab.
  5. Click Add, type Administrators, click Check Names, then OK.
  6. Now delete or disable your original admin account. The error should be gone.

Why step 5 works: Adding the new user to the Administrators group makes them a backup admin. Once Windows sees at least two admin accounts, it lifts the block. After you delete the old one, you can remove the tempadmin if you want — but you might keep it as a safety net.


Fix 2: The 5-Minute Fix – Use the Built-in Administrator Account

If you can't create a new user (maybe you're already locked out or permissions are messed up), you can enable the hidden built-in Administrator account. This account is the system's ultimate fallback — it's always there, just disabled by default.

Steps

  1. Open Command Prompt as Administrator (right-click Start → Terminal (Admin) or CMD (Admin)).
  2. Type this and press Enter:
net user administrator /active:yes

You'll see The command completed successfully.

  1. Set a password for this account (optional but smart):
net user administrator YourNewPassword
  1. Log out, then log in as Administrator with that password.
  2. Now go back to Computer Management and delete or disable the troublesome account. The error won't appear because the built-in admin exists as a fallback.

Real-world scenario where this matters: You ran a PowerShell script that disabled all non-built-in admin accounts. Oops. This method gets you back in control.

Caution: The built-in Administrator has no UAC prompts — it's all-powerful. Disable it after you're done (net user administrator /active:no) unless you need it permanently.


Fix 3: The 15+ Minute Fix – Safe Mode with Networking + Registry Edit

If both fixes above fail — maybe you're dealing with a domain-joined machine or corrupted user profiles — you need to go deeper. You'll boot into Safe Mode and use the registry to bypass the block.

Step 1: Boot into Safe Mode with Networking

  1. Restart your PC. As it boots, press F8 repeatedly (or Shift + Restart from the login screen).
  2. Select Safe Mode with Networking.
  3. Log in with any admin account that still works (maybe the built-in one from Fix 2).

Step 2: Edit the Registry to Remove the Protection

The flag that checks for last admin is stored in the SAM hive. You can't directly edit it while Windows is running because it's locked. But in Safe Mode, you can sometimes sneak around it.

  1. Open Regedit (run as administrator).
  2. Navigate to:
HKEY_LOCAL_MACHINE\SAM\SAM

You'll see nothing — the SAM is locked even in Safe Mode. To unlock it:

  1. Right-click on HKEY_LOCAL_MACHINELoad Hive.
  2. Browse to C:\Windows\System32\config\SAM. Load it with a name like TempSAM.
  3. Expand TempSAM\SAM\Domains\Account\Users\Names. Find your target user account.
  4. Look for a DWORD value named F or Flags. Setting it to 0 usually disables the last-admin check. But this is risky — I've seen it cause boot loops.

Honest warning: This registry method is fragile. I'd only recommend it if you have a backup of the SAM file or you're on a VM you can snapshot. The safer route is to use a password reset disk or boot from a Windows installation USB and use the Repair your computerTroubleshootCommand Prompt to enable the built-in admin with net user administrator /active:yes.


What If None of These Work?

If you're still stuck, you probably have a domain controller situation or a corrupted profile. For domain-joined machines, the last admin check is handled by Group Policy. Check gpedit.mscComputer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesSecurity OptionsAccounts: Administrator account status. If it's disabled, you need to enable it through the domain controller.

For corrupted profiles, boot from a Windows installation media, open Command Prompt (Shift+F10), and run chkdsk /f C: followed by sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows. Then try Fix 2 again.


Key Takeaway

Windows protecting the last admin account is a sanity check, not a punishment. The fix is always: make another admin first. Start with Fix 1, skip to Fix 2 if you're locked out, and only touch Fix 3 if you're comfortable with registry surgery. The error code 0XC0000069 is your friend — it's stopping you from making a mistake you'd regret.

Was this solution helpful?