Reset Built-in Administrator Account in Windows 10
In this article
You can reset the built-in Administrator account in Windows 10 by enabling it from an elevated Command Prompt or Windows Recovery Environment, then setting a new password with net user. The built-in Administrator is hidden by default, so the exact steps depend on whether you can still sign in to Windows or are locked out. This guide covers both situations, plus the mistakes that lock people out and the fixes when a step fails.
What You'll Need
- A Windows 10 PC with the built-in Administrator account either disabled or with a forgotten password.
- An account that is a member of the local Administrators group (for the signed-in method).
- Windows 10 installation media (USB or DVD) for the recovery method if you cannot sign in at all.
- Access to the PC's UEFI/BIOS or boot menu to change the boot order when using recovery media.
Step-by-Step
Labels in Settings and the recovery menus can differ slightly by Windows 10 version, edition and region. The commands below are the same across editions.
Method 1: Reset while you can still sign in to an admin account
- Sign in to Windows with any account that is a local administrator.
- Right-click Start and choose Windows PowerShell (Admin) or Command Prompt (Admin). If you only see the non-admin option, type
cmdin the Start search, right-click Command Prompt and choose Run as administrator. - Check the account's current state by typing
net user administratorand pressing Enter. The output shows whether the account is active and when the password last changed. - Enable the account if it is disabled: type
net user administrator /active:yesand press Enter. - Set a new password: type
net user administrator NewPasswordand press Enter, replacingNewPasswordwith a strong password. If you want to be prompted instead of typing it visibly, usenet user administrator *and enter the password twice. - Sign out or restart, then sign in to the Administrator account with the new password. Once you are in, open Settings > Accounts > Sign-in options if you want to add a PIN or picture password for that account.
- If you do not want the built-in Administrator visible on the sign-in screen, sign back in to your normal admin account and run
net user administrator /active:noto disable it again.
Method 2: Reset when you cannot sign in at all
- Create Windows 10 installation media on another PC using the official Media Creation Tool from Microsoft, then connect it to the locked PC.
- Restart the PC and open the boot menu (often F12, F11, Esc or Del, depending on the manufacturer), then boot from the USB or DVD.
- On the Windows Setup screen, choose your language and keyboard, then click Next and Repair your computer instead of Install now.
- Go to Troubleshoot > Advanced options > Command Prompt.
- Identify the Windows drive letter. In recovery, it is often not C:. Type
diskpart, press Enter, thenlist volumeand note the letter of the volume labelled Windows. Typeexitto leave DiskPart. - Enable the account: type
net user administrator /active:yesand press Enter. If the command reports the account cannot be found, the drive letter is wrong; repeat step 5 and try the other letter. - Set a new password: type
net user administrator NewPasswordand press Enter. If you get an access-denied error, the recovery environment is not reading the right drive; confirm the letter and try again. - Type
exitto close Command Prompt, then choose Continue to restart into Windows. Sign in to the Administrator account with the new password.
If the built-in Administrator was never enabled and you have no other admin account, Method 2 is the reliable route. There is no supported way to reset the account from the standard sign-in screen without admin rights or recovery media.
Common Mistakes
- Running the command in a non-elevated window.
net userreturns "Access is denied" unless the prompt is elevated. Always use Run as administrator. - Assuming the recovery drive is C:. In Windows Recovery Environment the system drive is often D: or E:. Running the command against the wrong letter either fails or changes nothing.
- Leaving the account enabled. The built-in Administrator has full control and no UAC prompt by default. Disable it again with
net user administrator /active:noonce you are done. - Typing the password with spaces or special characters that the shell interprets. Use
net user administrator *to enter it interactively and avoid quoting problems. - Forgetting that a Microsoft account is not the same as the built-in Administrator. These commands only affect the local account named Administrator, not your Microsoft account password.
Tips
- Use a password you can type accurately on the sign-in screen; the built-in Administrator has no password hint by default.
- If you plan to keep the account enabled, set a PIN or picture password afterwards in Settings > Accounts > Sign-in options.
- Write the new password down somewhere offline until you have signed in successfully at least once.
- Keep the installation media you used; it doubles as a recovery tool for future sign-in problems.
- If the PC is joined to a domain, local account changes may be overridden by domain policy. Check with your IT administrator before changing local accounts.
Troubleshooting
- "System error 5 has occurred. Access is denied." The Command Prompt is not elevated. Close it and reopen with Run as administrator.
- "The user name could not be found." In recovery, the drive letter is wrong. Run
diskpart,list volume, and use the letter for the Windows volume. - The account still shows as disabled after
/active:yes. Restart the PC and check again; some policies reapply at sign-in. If it persists, confirm you are using the exact account nameadministrator. - You cannot boot from the USB. Disable Secure Boot temporarily in UEFI firmware settings, or use the one-time boot menu key for your manufacturer.
- The new password is rejected at sign-in. Check Caps Lock and keyboard layout, especially if you created the password in the recovery environment with a different layout than the sign-in screen uses.
- You are locked out and have no installation media. Use another PC to create the media; there is no supported in-place reset from the sign-in screen without admin access.
Frequently Asked Questions
Does resetting the built-in Administrator delete my files?
No. Changing the password with net user only changes the account credentials. Your files and other accounts are untouched.
Can I reset the built-in Administrator without a password?
Yes, if you have admin access or recovery media. The net user administrator * command sets a new password without needing the old one.
Is the built-in Administrator the same as my Microsoft account?
No. The built-in Administrator is a local account named Administrator. Your Microsoft account password is managed separately online.
Why is the Administrator account missing from the sign-in screen?
It is disabled by default. Enable it with net user administrator /active:yes from an elevated prompt, then sign out to see it.
Will enabling the built-in Administrator remove my other admin account?
No. Enabling it adds the account to the sign-in screen; your existing accounts remain.
Can I use these steps on Windows 11?
The commands and recovery steps are the same, though menu labels may differ slightly. This guide is written for Windows 10.