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, if you’re changing an unknown administrator password, you need to use the command prompt.
Changing Server Administrator Password Windows Server 2008 R2
If you already know the current administrator password and can log into your Windows Server 2008 R2, changing the password is as simple as navigating to the user list and setting a new password.
- Log into the server either directly or by using Remote Desktop.
- Right-click Computer and then select Manage.
- Select Configuration.
- 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 Reset Password on Windows Server 2008 R2 or 2012
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 user passwords. Instead, you’ll need to use the command prompt to reset your administrator password.
-
- Insert the installation disk into the computer and boot it.
- On the Language and other preferences screen, click Next.
- Select the Repair your computer link.
- Select your OS installation and click Next.
- Click Command Prompt.
- Type in the following:
MOVE C:\Windows\System32\Utilman.exe C:\Windows\System32\Utilman2.exe
The command above makes a backup of the utility manager.
COPY C:\Windows\System32\cmd.exe C:\Windows\System32\Utilman.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:\Windows\System32\Utilman2.exe C:\Windows\System32\Utilman.exe
Restart your server once again and you’re done.
How to Recover Windows Server 2012 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.
Next you should also read
How to Connect to MySQL from Windows Command Line
May 3, 2019
MySQL is a popular and open-source relational database application. Many servers make use of MySQL, to…
Web Servers,SysAdmin,Bare Metal Servers
How to Restart Windows Server 2016 – Reboot Commands
October 22, 2018
When a computer runs for a long period of time, applications and operating system features can become…
Security,Web Servers,Bare Metal Servers
How to Use SSH to Connect to a Remote Server in Linux or Windows
September 24, 2018
In this tutorial, Find out How To Use SSH to Connect to a Remote Server in Linux or Windows. Get started with…
How to Configure Windows Server 2012 Firewall
September 17, 2018
Firewalls have become an essential part of every network that has access to the Internet. Without firewalls,…
Author
Dejan Tucakov
Dejan is the Technical Writing Team Lead at phoenixNAP with over 6 years of experience in Web publishing. Prior to joining phoenixNAP, he was Chief Editor of several websites striving to advocate for emerging technologies. He is dedicated to simplifying complex notions and providing meaningful insight into data center and cloud technology.