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 admin password on windows server 2008 r2 or 2012

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.

  1. Log into the server either directly or by using Remote Desktop.
  2. Right-click Computer and then select Manage.
  3. Select Configuration.
  4. Click Local Users and Groups > Users.
  5. Find and right-click the Administrator user.
  6. Click Set Password > Proceed.
  7. 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.

    1. Insert the installation disk into the computer and boot it.
    2. On the Language and other preferences screen, click Next.
    3. Select the Repair your computer link.

repair windows server 2008 install to recover password

  1. Select your OS installation and click Next.
  2. Click Command Prompt.
  3. 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.

  1. Reboot the system.
  2. Select the Ease of Access icon.
  3. Type in the following:
net user administrator *
  1. 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,

  1. Reboot the computer again from the installation disk.
  2. Open the Command Prompt.
  3. 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.

  1. When prompted to log in, click the Reset Password link.
  2. In the Forgotten Password wizard, click Next until you are prompted for the location of the password disk.
  3. Select the password reset disk and then follow the instructions to set a new password.
  4. Reboot your computer and log in with the new password.


This how-to article covered three distinct use cases:

  1. 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.
  2. 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.
  3. 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