If you see “The administrator account is disabled” or “Your account has been disabled” when logging into Windows 11, the fix is to re-enable the built-in Administrator account or your own account via Safe Mode, Command Prompt, or another admin account. This error usually appears after a recent update, a group policy change, or an accidental disable, and it can lock you out entirely. Below are the exact steps to regain access, plus background on why the error happens and how to prevent it.
Why Does This Error Happen?
Windows 11 includes a hidden built-in Administrator account that is disabled by default for security. Many third-party “tweaking” tools or a user with admin rights can accidentally disable it, or disable your own account in the Local Users and Groups console (lusrmgr.msc). The error can also appear after a Windows update resets user profile permissions, or when a domain policy (if your PC is joined to a network) overrides local settings. In most cases, the account itself is not corrupted—it is just flagged as disabled in the SAM database, and re-enabling it takes a single command.
Fix 1: Boot Into Safe Mode and Re-enable the Account
Safe Mode loads Windows with minimal drivers and services, and it often lets you log in with the built-in Administrator account even if your normal account is disabled. Here is how:
- Restart your PC. As it boots, press and hold Shift and click Restart on the login screen (if you can see it). If you cannot get to the login screen, force a restart three times to trigger Windows Recovery Environment (WinRE).
- In WinRE, go to Troubleshoot > Advanced options > Startup Settings > Restart.
- After the restart, press 4 or F4 to boot into Safe Mode.
- Log in with the built-in Administrator account (it is usually visible in Safe Mode even if disabled, because Safe Mode enables it temporarily). If you do not see it, try
.as the username and leave the password blank.
- Once logged in, open Command Prompt as administrator and type:
net user administrator /active:yes
If you want to re-enable your own account instead, replaceadministratorwith your username. - Restart normally and log in.
If Safe Mode does not show the Administrator account, you can also use the Command Prompt from the Advanced options (Troubleshoot > Advanced options > Command Prompt) and run the same net user command.
Fix 2: Use Another Admin Account
If you have a second account with administrator privileges that is still active, log into that account and re-enable the disabled one:
- Press Win + R, type
lusrmgr.msc, and press Enter. (This snap-in is only available in Windows 11 Pro, Enterprise, or Education; Home users need to use the command-line method.) - Go to Users, right-click the disabled account, and select Properties.
- Uncheck Account is disabled, then click OK.
- If you do not have
lusrmgr.msc, open Command Prompt as admin and run:net user username /active:yes
If the account was disabled by a group policy, you may also need to check Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment and ensure the account is not listed under “Deny log on locally.”
Fix 3: Use the Command Prompt at the Login Screen
If you cannot boot into Safe Mode or do not have another admin account, you can use the Windows Recovery Environment’s Command Prompt to enable the account:
- Boot from a Windows 11 installation USB or recovery drive.
- Select your language, then click Next and Repair your computer.
- Go to Troubleshoot > Advanced options > Command Prompt.
- Type
diskpart, thenlist volumeto find your Windows drive letter (usually C:). - Exit diskpart by typing
exit. - Run the following commands, replacing
C:with your drive letter if different:bcdedit /set {default} safeboot minimalexit - Restart your PC. It will boot into Safe Mode. Log in with the built-in Administrator account (if prompted, leave password blank).
- Open Command Prompt as admin and run:
net user administrator /active:yes
Then disable Safe Mode boot with:bcdedit /deletevalue {default} safeboot - Restart normally.
This method forces Safe Mode on the next boot, which bypasses the disabled account issue.
Fix 4: Use the Registry Editor (Advanced)
If you are comfortable editing the registry, you can re-enable the account from the registry hive. This is useful if the net user command fails due to permissions. The relevant key is:
HKEY_LOCAL_MACHINE\SAM\SAM\Domains\Account\Users\000001F4
The value F contains a binary flag; the 0x11 value indicates the account is disabled. Changing it to 0x10 enables it. However, editing the SAM hive requires SYSTEM privileges, so this is not recommended for most users. Stick with the command-line methods unless you have a specific reason.
What If the Error Persists?
If the account is enabled but you still get the error, the issue may be a corrupted user profile. Try creating a new local administrator account:
- Boot into Safe Mode as before.
- Open Command Prompt as admin and run:
net user newadmin password /addnet localgroup administrators newadmin /add - Restart and log into the new account. Then copy your files from the old profile (C:\Users\YourName) to the new one.
If the error appears immediately after a Windows update, you can also try System Restore to roll back to a point before the update. Type rstrui in the WinRE Command Prompt to open System Restore.
Frequently Asked Questions
Why is the built-in Administrator account disabled by default?
Microsoft disables the built-in Administrator account by default because it has full, unrestricted access to the system. Running as that account increases the risk of malware infection and accidental system damage. It is meant for troubleshooting only, not daily use.
Can I enable the Administrator account without logging in?
Yes. You can use the Windows Recovery Environment’s Command Prompt as described in Fix 3. You do not need to log into Windows to run the net user command from WinRE, as long as you have a Windows installation USB or recovery drive.
Will enabling the Administrator account create a security risk?
Yes, if you leave it enabled and use a weak or blank password. If you enable it for troubleshooting, set a strong password and disable it again afterward with net user administrator /active:no.
Does this error affect Microsoft accounts?
No. The “administrator account is disabled” error applies to local accounts. If you sign in with a Microsoft account, the account is not stored locally and cannot be disabled this way. However, a local account that is linked to a Microsoft account can still be disabled.
What if I don’t have a Windows 11 installation USB?
You can create one using another PC with the Windows Media Creation Tool from Microsoft’s website. Alternatively, you can use the “Reset this PC” option in WinRE, but that will remove apps and settings (you can choose to keep files).
Is there a way to prevent this error from happening again?
Do not disable the built-in Administrator account unless you are sure you have another working admin account. Avoid using third-party “optimizer” tools that tweak user accounts. Regularly create a system restore point before making major changes.
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
- Hogwarts Legacy Microsoft Visual C Runtime Error Fix
- Set Up UPI Payments Through WhatsApp
- Pair Oppo Enco Earbuds with Android, iPhone & Windows
- How to Play Kodi on Smart TV from PC
- Factory Reset on Samsung Galaxy: What It Erases
- Fix 0x800070422 & Restore WSUS Safely