Changing the admin password on a Windows server
Objective
When you install or reinstall a Windows Server operating system, you are provided with a password for administrative access (Administrator account).
If you have lost your Administrator password, you can reset it via the OVHcloud rescue mode.
This guide explains how to reset the password of the admin account of a Windows Server OS in the OVHcloud rescue mode.
Requirements
- A VPS or a Public Cloud instance in your OVHcloud account
- Access to the OVHcloud Control Panel
Instructions
Step 1: Reboot the server into rescue mode
Rescue mode has to be activated before the admin password can be changed.
Use the respective guide to restart your OVHcloud service into rescue mode:
Step 2: Mount the system partition
Connect to your server via SSH. (Consult the SSH introduction guide if necessary.)
Alternatively, you can open a server connection by using KVM (VPS) or the VNC console (Public Cloud instance).
Type the following commands to mount the Windows file system:
Step 3: Clear the current password
In this step the SAM file is edited by using a rescue mode tool. List the Windows users with this command:
In this example output, Administrator is the local admin account. Start the reset procedure with the following command. (Use admin in case Administrator does not exist.)
Type "1" and press Enter. (Make use of option 2 first if there is an "X" next to "Disabled".)
Type "q" and press Enter to quit the tool. Type "y" when prompted and press Enter.
Step 4: Reboot the server
You can now leave rescue mode and restart the server. If necessary, use the respective guide for your service:
Step 5: Set a new password (KVM / VNC)
Do not skip this step. An unprotected Administrator account is a severe security risk.
Connect to your server and enter cmd into the search bar to open the Command Prompt.
Set the password for the current user ("Administrator"):

You can now log in as "Administrator" with this new password.
Go further
Join our community of users.