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

  1. Press the Windows Key on your keyboard or click the Start button.
  2. Type cmd into the search bar.
  3. In the search results, right-click on Command Prompt and select Run as administrator (or click Run as administrator in the right pane).
  4. 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:yes

If 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:

  1. Open the Start Menu.
  2. Click your user profile icon.
  3. Select Administrator to switch to the account, or sign out of your current session and select the Administrator profile on the Windows lock screen.

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:no

Press Enter. The console will confirm that the command completed successfully, and the account will be hidden again.