Fix the Administrator Account Has Been Disabled Error in Windows 11
Regain access to your system by re-enabling the built-in administrator account using the Windows Recovery Environment, Safe Mode, or the Registry Editor.
Regain access to your system by re-enabling the built-in administrator account using the Windows Recovery Environment, Safe Mode, or the Registry Editor.
When the primary administrator account on a Windows 11 system is disabled, you lose the ability to approve User Account Control (UAC) prompts, install software, or modify crucial system settings. This situation can occur after using tools like netplwiz to adjust login settings or due to an accidental configuration change. The most effective way to resolve this is by using the Command Prompt from the Windows Recovery Environment to reactivate the account.
Enable the Administrator Account Using Command Prompt
This method is the most direct approach to re-enable your administrator account when you are locked out of your regular user session. It involves booting into the Windows Recovery Environment (WinRE), which provides access to troubleshooting tools without needing to log in to Windows.
On the Windows sign-in screen, locate the power icon in the bottom-right corner. Press and hold the Shift key on your keyboard, and while holding it, click the power icon and select Restart. Continue holding the Shift key until the “Choose an option” screen appears.
In the Advanced options menu, select Command Prompt. Your computer will restart and open a Command Prompt window before the main operating system loads.
In the Command Prompt window, type the following command and press Enter. This command targets the built-in administrator account and sets its status to active.
After the command executes, you will see a confirmation message that says, “The command completed successfully.” Close the Command Prompt window by clicking the “X” in the top-right corner.
You will be taken back to the “Choose an option” screen. Select Continue to exit the recovery environment and restart your computer to boot into Windows 11 normally.
On the sign-in screen, you should now see the “Administrator” account as an option. Click it to log in. By default, this account has no password. Once logged in, you can restore administrative privileges to your original user account through the Control Panel or Computer Management settings.
Re-enable the Administrator Account via Safe Mode
If you prefer a graphical interface, you can use Safe Mode to log in and re-enable the account. When Windows starts in Safe Mode, it allows the built-in Administrator account to be used for login, even if it has been disabled.
Close Computer Management and restart your computer. It will boot into normal mode, and the administrator account will be permanently enabled and accessible from the standard sign-in screen.
Manually Enable the Administrator Account by Editing the Registry
This method is for advanced users and should only be attempted if the other methods fail. It involves booting from a Windows installation media and directly modifying the Security Account Manager (SAM) file in the Windows Registry. Incorrectly modifying the registry can cause system instability.
Insert the bootable USB drive into the locked computer and start it. You may need to press a specific key (e.g., F2, F12, Del) during startup to enter the BIOS/UEFI settings and change the boot order to prioritize the USB drive.
In the “Load Hive” file browser, navigate to the drive where Windows is installed. In the recovery environment, this might be the D: or E: drive. The correct path is [Windows Drive]:\Windows\System32\config.
In the editor window, scroll down to the line with the offset 0038. In the first column of that row, you will see the value 11. Place your cursor just to the right of it, press Backspace once to delete it, and then type 10. This change toggles the account from disabled to enabled.
Close the Registry Editor and the Command Prompt. Remove the bootable USB drive and restart your computer. The built-in administrator account will now be active.
With your administrator account back in action, you can manage your system settings again. It’s a good practice to create a password for the built-in administrator account to keep your computer secure.