Introduction
There may come a time when you need to change the admin password on your Windows Server. Your recovery options depend on whether you remember the old password or not.
If you are routinely changing a known administrator password, you can use the Windows user interface. However, when changing an unknown administrator password, you need to use the command prompt.
Changing Server Administrator Password Windows Server
If you already know the current administrator password, log into your Windows Server, and simply change the password. The steps on how to do so differ depending on the version of Windows you are running.
How to Change the Password on Windows Server 2008 R2/2012
The steps outlined below apply to Windows server versions 2008 R2 and 2012. The only difference between them are steps 2 and 3.
- Log into the server either directly or by using Remote Desktop.
- Windows server 2008 R2: Right-click Computer and then select Manage.
Windows server 2012: Press the Windows key, type Administrative Tools and open the app. - Windows server 2008 R2: Select Configuration.
Windows server 2012: Navigate to Computer Management. - Click Local Users and Groups > Users.
- Find and right-click the Administrator user.
- Click Set Password > Proceed.
- Type in and confirm the new password.
How to Change the Password on Windows Server 2016 or 2019
If you are running Windows server 2016 or 2019, change the admin password by following the steps below:
- Log into the server either directly or by using Remote Desktop.
- Press the Windows key + i to open Windows Settings.
- Navigate to Accounts and open the Sign-in Options.
- Scroll to the Password section and click Change.
- Provide the current password and click Next.
- Type in and confirm the new password.
How to Reset Password on Windows Server
What happens when you need to change the admin password because you have lost the old password?
If you don’t have the old password, you can’t access the server to change it. Instead, use the command prompt to reset your administrator password. The following steps can be used on Windows version 2008 R2, 2012, 2016, and 2019.
- Insert a DVD or USB with the installation and boot the system.
- On the Language and other preferences screen, click Next.
- Select the Repair your computer link.
- The next steps differs according to your Windows version.
Windows server 2008: Select your OS installation and click Next.
Windows server 2012/2016/2019: Select Troubleshoot.
- Click Command Prompt.
- Type in the following:
MOVE C:WindowsSystem32Utilman.exe C:WindowsSystem32Utilman2.exe
The command above makes a backup of the utility manager.
COPY C:WindowsSystem32cmd.exe C:WindowsSystem32Utilman.exe
This command replaces Utilman with the Command Prompt. That is necessary to reset the password.
The commands mentioned above may vary based on the path of your Windows install. In our example, it is on the C drive. In case your install is located on another disk partition, modify the command accordingly.
- Reboot the system.
- Select the Ease of Access icon.
- Type in the following:
net user administrator *
- Type in and confirm your desired password.
Once completed, you will be able to log in as admin. However, don’t forget to revert your changes to Utilman. To do so,
- Reboot the computer again from the installation disk.
- Open the Command Prompt.
- Run the following:
MOVE C:WindowsSystem32Utilman2.exe C:WindowsSystem32Utilman.exe
Restart your server once again and you’re done.
How to Recover Windows Server Password With Password Recovery Disk
If you have created a password recovery disk for your server, insert the USB stick into the server and then reboot the system.
- When prompted to log in, click the Reset Password link.
- In the Forgotten Password wizard, click Next until you are prompted for the location of the password disk.
- Select the password reset disk and then follow the instructions to set a new password.
- Reboot your computer and log in with the new password.
Conclusion
This how-to article covered three distinct use cases:
- Changing an admin password you know. If you already know your administrator password, changing it is as simple as navigating to the Users area on your server and selecting to change the admin password.
- Resetting an admin password you don’t know. If you don’t remember your administrator password, you can use the Command Prompt window to reset it. Resetting works for both Windows Server 2008 R2 and Windows Server 2012.
- Using a Password Recovery Disk. If you don’t remember your administrator password, but you previously created a password recovery disk, you can use that disk to reset a forgotten password.
Whatever your use case may be, by following this guide, you will be able to reset a Windows Server admin password.