Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home » Windows

How to Reset Administrator Password in Windows

Abhishek SilwalBy Abhishek SilwalJune 29, 2023
Reset Administrator Password

It’s a good practice to set a strong password containing alphanumeric characters and symbols, especially for an administrator account. However, a strong password is easy to forget as well.

Fortunately, there are many ways to reset a password in Windows. While most methods require access to another admin account, it is still possible to achieve the same objective even without admin access.

Resetting Microsoft Administrator Account

Your Microsoft administrator account on your computer is tied to the online Microsoft account. So if you change the password for the online account, your Windows account password will change accordingly.

Also, keep in mind that there is a limit on the number of password reset requests you can ask for in a day. So, make sure to set up a new password that is easier to remember or use a proper password manager.

  1. Open a web browser on another user account, or if not, on another device.
  2. Go to the online Microsoft Password Reset page.
  3. Type your Microsoft ID and click Next.
    microsoft-account-reset-password
  4. Follow the on-screen instructions till you get to the Verify your identity page.
  5. Check your emails or phone message for the security code and then enter this code on the Verify your Identity page.
  6. Click Next.
    verify-code-microsoft-account-password-reset
  7. Set up the new password and choose Next again.

Resetting Local Admin Password (Same or Different Admin Account

If you know the current password of the administrator account, you can easily change or reset it through Windows Settings. However, if you don’t know the password, Windows contains many programs that allow resetting the password through any other admin account.

Using Windows Settings

The general way of changing the password on Windows is through the Windows Settings.

However, with this method, you can only change the password of a currently logged in account. So, if you don’t know the admin account password, you need to move to the next method.

  1. Open Windows Settings by pressing the Windows key + I.
  2. Go to Accounts > Sign-in options.
  3. Expand the Password option and click Change.
    change-password-sign-in-options-accounts-settings
  4. Type the current password and select Next.
  5. Type the password you want to set up in the New password and Confirm password text fields.
  6. Then, enter any password hint you want and click Next. If you want to remove the password, you need to leave these fields empty instead.
    change-password-next
  7. Select Finish.

Through Local Users and Groups

If you are not a Windows Home user, you can use the Local Users and Groups MMC snap-in to reset or change the password of an admin user account. If you are a Home user, try other methods or use an open-source third-party alternative from GitHub with the same interface.

  1. Open Run by pressing Windows + R.
  2. Type lusrmgr.msc and press Enter to open Local Users and Groups.
  3. Double-click on Users on the middle pane.
  4. Look for the administrator account and right-click on it.
  5. Choose Set password and then Proceed.
    set-password-local-users-and-groups
  6. Type the new password on the following prompts. You can also leave them blank if you don’t want to have a password.
  7. Click OK > OK.

With Command Prompt

You can also use command-line interfaces like Command Prompt to reset an admin account’s password. Also, keep in mind that you need to run Command Prompt as an elevated process (as an administrator), or you’ll get the “Access is denied” error.

  1. Open Run.
  2. Type cmd and press Ctrl + Shift + Enter to open the Elevated Command Prompt.
  3. Type the following commands and press Enter after each to reset the administrator account’s password:
    • net users (check the proper name of the administrator account)
    • net users “Admin account name” “New password” (replace “Admin account name” with the actual admin user name and “New password” with the password you want to set.
      net-users-password-reset
  4. If you want to remove the password of the account, type the command net users “Admin account name” * and press Enter thrice.
    net-users-remove-password-press-Enter

Through PowerShell

To reset an admin account’s password through PowerShell, you need to follow a similar process as that for Command Prompt. You need to use other cmdlets that are specific to PowerShell. However, you need to specify it as a Secure String first.

  1. Open Run.
  2. Type powershell and press Ctrl + Shift + Enter to open the Elevated Windows PowerShell.
  3. Type Get-LocalUser and press Enter. Here, check the proper name of the admin account.
  4. Then, type $Password = Read-Host -AsSecureString and press Enter.
  5. Type the new password. It should appear as secure string (asterisk ‘*’ characters covering the text). Then, press Enter.
  6. Now, type Set-LocalUser -name "Admin account name" -Password $Password while replacing “Admin account name” accordingly. Press Enter to reset the password.
    get-localuser-password-as-secure-string-set-localuser-passowrd
  7. If you want to remove the password instead, use the cmdlet Set-LocalUser -name "Admin account name" -Password ([securestring]::new())
    powershell-remove-password-set-localuser

Using Control Panel

Another way you can reset a user password is through the traditional configuration tool on Windows, the Control Panel. Unlike all previous methods, it doesn’t allow changing the current account’s password. But you can still use it to change any other account’s password.

  1. Open Run.
  2. Type control and press Enter to open the Control Panel.
  3. Go to User Accounts > User Accounts on category view.
  4. Click on Manage another account and pick the administrator account you want.
    manage-another-account-user-accounts
  5. Select Change the password.
  6. Type the password you wish to set in the New password and the Confirm new password text boxes.
  7. Type a password hint if you need and select Change password. 
    change-password-control-panel-user-account
  8. If you want to remove the password, you need to leave all the text fields as empty and then click Change password instead.

From Netplwiz Wizard

The Netplwiz tool on Windows also allows you to reset the password for any account that you are not currently logged into. 

  1. Open Run.
  2. Type netplwiz or control userpasswords2 press Enter to open Netplwiz wizard.
  3. Select the administrator account under Users for this computer.
  4. You may need to check Users must enter a user name and password to use this computer if the users are grayed out.
  5. Click on Reset Password after selecting the account.
    user-account-reset-password-netplwiz
  6. Type the new password on both the New password and the Confirm password text boxes and click OK. If you want to remove the password instead, leave them blank.
  7. Select OK again.

Resetting Local Admin Password Without Admin Access

Usually, if you don’t have any admin access, you need to make prior preparations like a password reset disk to reset an admin password. But you can also try some other specific methods for this purpose.

Using Password Reset Disk

You can also use a password reset disk to reset the admin password if you had previously created such a disk. It will still work even if you had changed the password afterward.

  1. Plug in the password reset USB flash drive into your computer.
  2. Try typing anything on the account password and press Enter.
  3. After you get the “The password is incorrect. Try again error” and click OK.
  4. Select  Reset password and then Next.
    reset-password-login-screen
  5. Choose the reset USB disk on the drop down box and click Next.
  6. Enter the new password on the relevant fields and select Next.
  7. Click on Finish.

By Modifying SAM Registry Files

Windows stores the user accounts configuration in the Security Accounts Manager (SAM) registry files. The contents of these files are not easy to understand and use. So there’s no feasible way to directly reset the password using these files. 

But it is possible to use an entry within SAM to enable the hidden built-in Administrator account that does not have a password by default. Then you can reset the password for another admin account you want from within this account.

Disclaimer: This method is for educational purposes only and not to encourage anyone to try accessing somebody else’s computer. Any unsolicited access is illegal whether the computer is password protected or not. So, only use this method on your own computer or if you have prior consent to do so.
  1. First, you need to get to Advanced startup options.
    • On the login screen, click on the power icon.
    • Press the Shift key on your keyboard and click on Restart while holding it.
    • Click Restart anyway if necessary.
  2. On the Advanced startup, go to Troubleshoot > Advanced options > Command Prompt.
    command prompt in advanced startup
  3. Type bcdedit and press Enter. Here, look for the drive letter next to osdevice under Windows Boot Loader.
  4. Type regedit and press Enter to open the Registry Editor.
    bcdedit-osdevice-regedit
  5. Here, select HKEY_LOCAL_MACHINE.
  6. Go to File on the menu and select Load Hive.
    registry-editor-hklm-load-hive-advanced-startup
  7. Go to This PC and look for your system drive. It is the drive letter that you got in step 3.
  8. Go inside this drive and inside Windows\system32\config.
  9. Look for and select SAM. Click Open.
    registry-editor-load-hive-sam-open
  10. You can use any name for the Key Name. I have used NEW_SAM for it, but you can use your own and replace NEW_SAM with that name whenever necessary.
    save-hive-as-new-sam
  11. Navigate to Computer\HKEY_LOCAL_MACHINE\NEW_SAM\SAM\Domains\Account\Users\000001F4
  12. Search for and double-click on F.
    hklm-new-sam-sam-domains-account-users-000001f4-f
  13. On the 00000038 row, select the first value, which should be 11.
    select-f-00000038-11
  14. Replace it with 10.
    f-00000038-replace-with-10
  15. Close the Registry Editor and the Command Prompt.
  16. Select Continue to boot into Windows OS.
  17. On the login screen, you should see the account with the name Administrator. Log into this account and then use any of the methods I have provided above to reset the administrator password.
  18. After that, you need to disable the built-in Administrator account.
    • Open Run.
    • Type cmd and press Ctrl + Shift + Enter to open the Elevated Command Prompt.
    • Type net users Administrator /active:no and press Enter.
      net-user-administrator-active-no
Note: If you need to enter the admin password anywhere on the Advanced Startup, you need to create a Windows installation media, boot using it and press Shift + F10 on the Install screen to open the Command Prompt. The rest of the process is the same as above.

By Changing Sethc (Windows Sticky Key program)

You can open Command Prompt without booting into Windows via the Advanced Startup options. However, it’s not possible to manipulate your user accounts and passwords through this Command-line Interface. It is because this environment is different from the usual Windows environment and comes with its own administrator account and system files. 

Also, while the computer would have already booted to the Windows OS when you get to the login screen, you can’t open the Command Prompt without actually logging into an account.

However, it is possible to run certain programs, like the Windows Sticky Keys. So, what you can do is replace such programs with the Windows OS Command Prompt through the Advanced Startup Command Prompt. This way, you can call the required Command Prompt from the login screen and reset the password through it.

Disclaimer: Similar to the above method, any unsolicited access to other computers is an invasion of privacy and punishable by law. So, make sure that you only use this method on authorized computers.
  1. Get to Advanced Startup options from your own system or using an installation media (see above method).
  2. Go to Troubleshoot > Advanced options > Command Prompt.
  3. Type the following commands and press Enter after each.
    • bcdedit (here, check the drive letter for osdevice under Windows Boot Loader)
    • cd /d E:\Windows\system32 (here, replace E: with the drive letter from above)
    • ren sethc.exe sethc.bak
    • copy cmd .exe sethc.exe
    • exit
      advanced-startup-command-prompt-bcdedit-osdevice-ren-sethc-copy-cmd-exit
  4. Then, go to Troubleshoot > Advanced > Startup Settings > Restart.
  5. After the reboot, press F5 to boot into safe mode with networking.
    enable safe mode or safe mode with networking
  6. On the login screen, press the Shift key five times. It will load the Command Prompt instead of the Sticky Keys tool.
  7. Here, use the same commands as the ones I’ve mentioned earlier to reset or remove the password.
  8. Then, restart your computer without logging in to boot in normal mode. You may experience glitches if you try logging into the account in safe mode.
  9. Log in to the account using the new password. 
  10. Now, you need to revert sethc.exe back to how it was. You can use the SFC /Scannow command to do so easily.
    • Open Run.
    • Type cmd and press Ctrl + Shift + Enter to open the Elevated Command Prompt.
    • Type sfc /scannow and press Enter.
      sfc-scannow-command-prompt
how-to
Abhishek Silwal
  • LinkedIn

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems. You can contact him at abhisheksilwal@technewtoday.com

Related Posts

how to turn off hardware acceleration

How to Turn Off Hardware Acceleration

September 22, 2023
what happens if you turn off your computer during an update

What Happens if You Turn Off Your Computer During an Update?

September 18, 2023
How to Disable Integrated Graphics

How to Disable Integrated Graphics?

September 16, 2023
System Restore Stuck

How To Fix Windows Stuck on System Restore

September 16, 2023
startup-repair-couldn't-repair-your-pc

How To Fix “Startup Repair Couldn’t Repair Your PC”

September 13, 2023
how to free up ram

How to Free Up Memory

August 4, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
how to turn off hardware acceleration

How to Turn Off Hardware Acceleration

September 22, 2023
motherboard chipset

Understanding Motherboard Chipset and Its Importance

September 20, 2023
Naval-Warfare-Games

Best Naval Warfare Games

September 18, 2023
You may also like
printer-not-printing

How to Fix a Printer That’s Not Printing

September 26, 2023
Share Location With Friends and Family

Share Location With Friends and Family (iPhone and Android)

September 18, 2023
how-to-print-without-a-printer

How to Print Without a Printer

September 18, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.