Enable Administrator Account in Windows 11 via CMD
Windows 11 includes a powerful, built-in Administrator account that remains hidden and disabled by default for system security. This article provides a quick, step-by-step walkthrough on how to enable this elevated account using the Windows Command Prompt, assign it a secure password, and disable it once troubleshooting or administrative tasks are complete.
Step 1: Open Command Prompt as Administrator
- Press the Windows Key on your keyboard or click the Start button.
- Type
cmdinto the search bar. - In the search results, right-click on Command Prompt and select Run as administrator (or click Run as administrator in the right pane).
- Click Yes if prompted by User Account Control (UAC).
Step 2: Enable the Built-in Administrator Account
In the elevated Command Prompt window, type the following command and press Enter:
net user administrator /active:yesIf successful, the console will display the message:
The command completed successfully.
Step 3: Set a Password for the Administrator Account
By default, the built-in Administrator account does not have a
password. To secure the account immediately, run the following command,
replacing <YourPassword> with your chosen
password:
net user administrator <YourPassword>Press Enter to apply the password.
Step 4: Access the Administrator Account
To log in to the newly enabled account:
- Open the Start Menu.
- Click your user profile icon.
- Select Administrator to switch to the account, or sign out of your current session and select the Administrator profile on the Windows lock screen.
Step 5: Disable the Administrator Account (Recommended)
Leaving the default Administrator account active poses a security risk. Once you have completed your administrative tasks, disable the account by running this command in an elevated Command Prompt:
net user administrator /active:noPress Enter. The console will confirm that the command completed successfully, and the account will be hidden again.