A logo showing the text blog.marcnuri.com
Español
Home»Operations»Windows 11: How to enable the built-in Administrator account

Recent Posts

  • Fabric8 Kubernetes Client 8.0 is now available!
  • Fabric8 Kubernetes Client 7.9 is now available!
  • Eclipse JKube 1.20 is now available!
  • Project, Agent, Person: The Missing Axis of AI Coding Tools
  • Fabric8 Kubernetes Client 7.8 is now available!

Categories

  • Artificial Intelligence
  • Backend Development
  • Cloud Native
  • Engineering Insights
  • Frontend Development
  • JavaScript
  • Legacy
  • Operations
  • Personal
  • Pet projects
  • Quality Engineering
  • Tools

Archives

  • September 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • October 2025
  • September 2025
  • July 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • August 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • July 2019
  • March 2019
  • November 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • December 2017
  • October 2017
  • August 2017
  • July 2017
  • January 2017
  • May 2016
  • December 2015
  • November 2015
  • December 2014
  • November 2014
  • October 2014
  • March 2014
  • August 2012
  • February 2011
  • November 2008
  • June 2008
  • May 2008
  • April 2008
  • January 2008
  • November 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007

Windows 11: How to enable the built-in Administrator account

2023-09-25 in Operations tagged Windows by Marc Nuri | Last updated: 2026-10-14
Versión en Español

To enable the built-in Administrator account in Windows 11, open a Command Prompt or Terminal as an administrator and run net user administrator /active:yes. Then give the account a password, sign out, and pick Administrator on the sign-in screen. The same command works in every edition, Home included, and in Windows 10; on a non-English Windows, the account's name may be translated (Administrador in Spanish), so use that name instead.

Every Windows installation creates a built-in Administrator account, but since Windows Vista, setup disables it and makes your own account a member of the Administrators group instead. Windows 11 still does that. There are several approaches to enable it again. In this article, I'll show you the one that I find easiest and that I've been using for years, since Windows XP, plus a few alternatives.

I'll also cover what to do when the command fails, how to set the password, how to disable the account again, and what to do if you're not an administrator. I took the screenshots on Windows 11 22H2 in September 2023. For this October 2026 update, I checked the commands and settings against Microsoft's documentation as of Windows 11 version 26H2, the current release, without rerunning them on a Windows machine.

Opening the Command Prompt as administrator

⁠

The first step is to open a Command Prompt (or a Terminal) with administrator rights.

Press the Start button and type cmd. The Start menu should look like the following picture:

Windows 11 Start menu with the Command Prompt app and its Run as administrator option
Windows 11 Start menu with the Command Prompt app and its Run as administrator option

Once the Command Prompt application is listed, click on the Run as administrator option.

Alternatively, right-click the Start button (or press Windows+X) and choose Terminal (Admin). Terminal opens Windows PowerShell by default, and the net user commands in this post work the same in PowerShell as in the Command Prompt.

Note

User Account Control (UAC) asks you to confirm before the Command Prompt or Terminal opens. Click on Yes to proceed. If your account is a standard user, UAC asks for an administrator's password instead; read what to do if you're not an administrator.

Enabling the Administrator account from the Command Prompt (net user)

⁠

Before you change anything, you can check the account's current state:

cmd.exe
net user administrator

The Account active line of the output says No while the account is disabled.

Then run the following command to enable the built-in Administrator account:

cmd.exe
net user administrator /active:yes

The following screenshot shows the successful output of the command:

cmd.exe: net user administrator /active:yes, The command completed successfully
cmd.exe: net user administrator /active:yes, The command completed successfully

What if the command fails?

⁠

These are the errors you're most likely to see:

  • System error 5 has occurred. Access is denied. The Command Prompt isn't running as administrator. Close it and open it again with Run as administrator.
  • The user name could not be found. (error 2221) The account has a different name on your machine. Some languages translate the built-in account's name: on a Spanish installation it's Administrador, so the command is net user administrador /active:yes, while German or Italian installations keep Administrator. An IT department may also have renamed it. Run net user without arguments to list the real account names.
  • The password does not meet the password policy requirements. (error 2245) Windows refuses a password, or enabling an account, that breaks the computer's password policy. Set a new password first, as shown below.

If you'd rather not guess the name, Windows PowerShell can find the account by its security identifier (SID), which always ends in -500, whatever the account's name or language:

Windows PowerShell
Get-LocalUser | Where-Object SID -like '*-500' | Enable-LocalUser

Run it from an elevated Windows PowerShell or Terminal (Admin). Get-LocalUser and Enable-LocalUser come with Windows PowerShell 5.1, which every Windows 11 edition includes.

Setting a password for the Administrator account

⁠

Enabling the account doesn't give it a password. When I enabled it in September 2023, it had none, so anyone at the keyboard could sign in with full administrator rights. Set one before you sign out:

cmd.exe
net user administrator *

The asterisk makes net user prompt for the password twice, without showing it on screen. Avoid typing the password directly on the command line, where it stays in the console history, and in PowerShell's history file on disk. On computers set up with Windows 11 22H2 or later, Windows requires this password to mix at least two of lowercase letters, uppercase letters and numbers (KB5020282).

Signing in as the Administrator

⁠

Once the Administrator account is enabled, you can log in as the Administrator. Sign out, or press Ctrl+Alt+Del and choose Switch user. Your login screen should contain the new entry for the Administrator account:

Windows 11 sign-in screen with the Administrator account in the bottom-left list
Windows 11 sign-in screen with the Administrator account in the bottom-left list

The first sign-in takes a minute, since Windows creates a new profile for the account.

If you didn't set a password from the Command Prompt, set it now by pressing Ctrl+Alt+Del and selecting the Change a password option.

Keep in mind that this account behaves differently from your own administrator account. By default, the built-in Administrator runs every application with full administrator privileges, without the UAC prompts you're used to. That's why Microsoft recommends keeping it disabled and signing in with it only when you need it.

Other ways to enable the Administrator account

⁠

Windows 11 Pro, Enterprise and Education include two graphical tools that do the same as net user. Windows 11 Home doesn't include either of them, so use the Command Prompt or PowerShell there.

Local Users and Groups (lusrmgr.msc):

  1. Press Windows+R, type lusrmgr.msc, and press Enter.
  2. Open the Users folder and double-click Administrator.
  3. Clear the Account is disabled checkbox and click OK.

Local Security Policy (secpol.msc):

  1. Press Windows+R, type secpol.msc, and press Enter.
  2. Go to Local Policies > Security Options.
  3. Double-click Accounts: Administrator account status, select Enabled, and click OK.

How to give your own account administrator rights instead

⁠

Many people looking for the Administrator account just need administrator rights for their everyday account, or for another user's. In that case, don't enable the built-in account: change the account type instead.

From another administrator account (the built-in one works), go to Settings > Accounts > Other users, select the account, click Change account type, choose Administrator, and click OK. Settings doesn't list the account you're signed in with, so you can't change your own type from it.

From an elevated Command Prompt, net localgroup administrators marc /add does the same for the user marc (replace it with your user name as net user lists it). The group name is translated too (Administradores on a Spanish installation); the PowerShell equivalent uses the group's SID, which is the same in every language:

Windows PowerShell
Add-LocalGroupMember -SID S-1-5-32-544 -Member marc

To create a new administrator account from the Command Prompt instead, create the user and add it to the group:

cmd.exe
net user marc2 * /add
net localgroup administrators marc2 /add

How to disable the Administrator account again

⁠

When you're done, sign out of the Administrator account, sign in with your own account, and run this from an elevated Command Prompt:

cmd.exe
net user administrator /active:no

Before you run it, make sure your own account is an administrator: run net localgroup administrators and check that your user name is in the list. If it isn't, add it first (see above); otherwise, you lose your only way to make administrative changes. In Windows PowerShell, Get-LocalUser | Where-Object SID -like '*-500' | Disable-LocalUser disables it whatever its name.

Can you enable it if you're not an administrator?

⁠

No, and that's by design: enabling an administrator account requires administrator rights. If UAC asks you for an administrator password you don't have, these are your options:

  • Someone else is the administrator (a family member, your company's IT department): ask them. On a work computer, policy may block the built-in account anyway.
  • You're the administrator but forgot your password: reset it. For a Microsoft account, select I forgot my password on the sign-in screen; for a local account, select Reset password after a wrong attempt and answer your security questions. Microsoft explains both in Change or reset your password in Windows.
  • No administrator account is enabled at all: start Windows in safe mode. On a computer that isn't joined to a domain and has no other administrator account enabled, safe mode enables the built-in Administrator account, and Windows disables it again on the next normal start. Sign in with it, make your own account an administrator, and restart. If your device is encrypted, Windows asks for your BitLocker recovery key on the way.

You Might Also Like

⁠
  • Windows XP: How to enable the built-in Administrator account
  • Windows: How to kill a process from the command line
  • Windows: List all environment variables (CMD, PowerShell)
  • How to check open TCP/IP ports in Windows
Twitter iconFacebook iconLinkedIn iconPinterest iconEmail icon

Post navigation
Bash: How to wait until a file existsFabric8 Kubernetes Client 6.9 is now available!
© 2007 - 2026 Marc Nuri