Renaming the built-in Administrator account in Windows 10 improves security by making it harder for attackers to target a well-known username. This guide shows you how to do it safely using Local Security Policy or Command Prompt, and what to do if things go wrong.
What You’ll Need
- An account with administrative privileges (the built-in Administrator account itself, or another admin account).
- Windows 10 Pro, Enterprise, or Education edition (Local Security Policy is not available in Windows 10 Home). For Home edition, use the Command Prompt method.
- The new name you want to use (must be a valid Windows username: no <>:”/\\|?* and not just periods or spaces).
Step-by-Step
Method 1: Using Local Security Policy (Pro/Enterprise/Education)
- Press Win + R, type
secpol.msc, and press Enter. - In the left pane, expand Security Settings → Local Policies → Security Options.
- In the right pane, double-click Accounts: Rename administrator account.
- Type the new name for the built-in Administrator account (e.g.,
AdminorRoot). Do not use spaces or special characters like @ or #. - Click OK, then close the Local Security Policy window.
- The change takes effect immediately. You don’t need to restart, but if the account is currently logged in, log off and back on to see the new name.
Method 2: Using Command Prompt (All editions)
- Right-click the Start button and select Command Prompt (Admin) or Windows PowerShell (Admin).
- Type the following command and press Enter:
wmic useraccount where name='Administrator' call rename name='NewName'
ReplaceNewNamewith the desired name (e.g.,Admin). - If the command succeeds, you’ll see
ReturnValue = 0. - Close the Command Prompt. The change is immediate.
Common Mistakes
- Using spaces or invalid characters – Windows usernames cannot contain
< > : " / \ | ? *and cannot be only periods or spaces. - Renaming the wrong account – Make sure you’re renaming the built-in Administrator, not a different admin account. You can check with
net userin Command Prompt. - Forgetting to use an elevated prompt – The Command Prompt method requires administrator privileges. If you get “Access denied”, right-click and run as administrator.
- Not being logged in as an admin – Both methods need an account with administrative rights.
Tips
- Use a name that is not obvious (e.g., avoid “Admin” or “Root”) to improve security.
- If you have multiple admin accounts, consider renaming them all to unique, non-default names.
- After renaming, update any shortcuts or scripts that reference the old name.
- You can verify the new name by typing
net userin Command Prompt – the built-in Administrator will appear with the new name.
Troubleshooting
- “Access denied” when using Command Prompt – Make sure you are running the prompt as administrator (right-click → Run as administrator).
- Local Security Policy not found – This happens on Windows 10 Home. Use the Command Prompt method instead.
- Error “The parameter is incorrect” – This usually means the new name contains invalid characters or is too long (max 20 characters). Check the name and try again.
- Change doesn’t appear in User Accounts – The built-in Administrator account is hidden by default. To see it, open Computer Management → Local Users and Groups → Users. The account will show the new name.
- If you get locked out – If you accidentally rename the only admin account and can’t log in, boot into Safe Mode (Shift + Restart) and use the built-in Administrator account (which is enabled in Safe Mode) to fix it.
Frequently Asked Questions
Will renaming the Administrator account affect my files or programs?
No. Renaming only changes the username. Your files, programs, and settings remain intact.
Can I rename the Administrator account back to “Administrator”?
Yes, you can use the same methods to rename it back to any name, including the original.
Does renaming disable the account?
No, the account remains enabled. Renaming does not disable or affect its status.
Is the built-in Administrator account the same as the one I created during setup?
No. The built-in Administrator is a separate hidden account. The account you created during setup is a standard admin account. Both can be renamed, but this guide focuses on the built-in one.
Why is the built-in Administrator account not visible in Settings?
It’s hidden by default. You can see it in Computer Management or with the net user command. It’s only active if you enabled it.
Can I rename the Administrator account using PowerShell?
Yes, you can use Rename-LocalUser -Name "Administrator" -NewName "NewName" in an elevated PowerShell window.
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
- 0x800f0922 Update Failed: Fixes That Work
- How to Record Webcam on Windows PC
- Enable or Disable Photos in Spotlight Search on iPhone
- Bond Redemption at Maturity: What Investors Need to Do
- How to Fix Secure Boot Not Enabled in Windows 11 and 10
- Fix Network Blocking Encrypted DNS Traffic on iOS