How to Change the Windows Administrator Password

How to Change the Windows Administrator Password (head image)

The Windows Administrator account holds primary control over your system’s settings, software installations, and configurations. Changing this password periodically is a proactive measure to enhance your computer’s security status. Over time, passwords could be compromised due to several factors such as data breaches or increased computing power available to attackers, making regular password changes a recommended practice. In this article, you will find the simplest way on how to change the Windows administrator password.

Changing the Windows Server Administrator Password 

In the following sections, we will present you with different approaches on how to change the Windows Administrator Password

Login via RDP 

To get started, login into your server via RDP (Remote Desktop Protocol). If you do not know how this can be done, check our article “How do I connect to my Windows server via RDP”. 

Start a Command Prompt as Administrator 

To change the admin password, you need to start a command shell with administrator privileges. 

This can be done by pressing [Windows] + [R] at the same time. The Run-Dialog will pop up. 

How to Change the Windows Administrator Password (run dialog)

Now type in “CMD” to open the command prompt and press [Enter]

Use the following command syntax to change the password: 

net user administrator <new password> 

Of course, replace <new password> with the new password you want to set. 

Changing the Password via Control Panel 

The second method which you can use to change the Windows administrator password is through the built-in Control Panel. Just follow the steps below, to change the password: 

  1. Press the [Windows] key on your keyboard or click on the Windows icon in the taskbar to open the Start menu. 
  1. Type “Control Panel” in the search bar and press [Enter]. This will open the Control Panel window. 
  1. In the Control Panel, locate and click on the “User Accounts” option. This will open the User Accounts settings. 
  1. Click on “User Accounts” again. 
  1. In the “Make changes to your user account” menu, click on “Manage another account.” 
  1. You will see a list of user accounts on your computer. Select the “Administrator” account for which you want to change the password. 
  1. On the next screen, click “Change the password.” 
  1. Windows will prompt you to enter the current password for the Administrator account. Type it and click “Next.” 
  1. Now, enter your desired new password in the “New password” and “Confirm new password” fields. Ensure it meets security requirements (length, complexity) for a strong password. 
  1. You can also add a password hint to help you remember the password if needed, but this is optional. 
  1. Once you have entered the new password and optional hint, click “Change password.” 
  1. Windows confirms the change of your password. Click “Finish” to complete the process. 

Changing the Password via PowerShell 

  1. Press the [Windows] key on your keyboard or click on the Windows icon in the taskbar to open the Start menu. 
  1. Type “PowerShell” in the search bar, right-click on “Windows PowerShell” in the search results and choose “Run as administrator.” This will open PowerShell with elevated privileges. 
  1. In the PowerShell window, type the following command to change the Administrator password: 

Set-LocalUser -Name Administrator -Password (Read-Host -AsSecureString “NewPassword”) 

Press [Enter]

Replace “NewPassword” with an actual new and secure password. 

  1. PowerShell will prompt you to enter the new password. Type it carefully; characters are not displayed on the screen for security reasons. Press [Enter]
  1. It prompts you to confirm your password. Re-enter it and press [Enter] again. 
  1. PowerShell will process the command and change the Administrator password. Once done, it will return you to the prompt. 

You now know the steps to take to successfully change the Windows Administrator password using either the Command Prompt, Control Panel, or the PowerShell. Be sure to remember your new password, or store it securely, as it is essential for administrator access to your system. Bitwarden, a well-known password manager might come in handy while trying to keep all your passwords organized. Check out our Guide on How to Self-host Bitwarden on a VPS to learn more. 

Scroll to Top