How to Reset a Lost Windows Administrator Password on a Windows VPS Using Rescue Mode
Issue
You’re locked out of a Windows VPS because the Administrator password is no longer accepted. You only have remote console/VNC access via your hosting provider’s panel, and normal Windows tools for password reset aren’t available.
Probable Cause
The Administrator account password was lost, changed, or the account was locked after too many failed login attempts. Since this is a remote VPS with no physical access, you must boot into a Linux-based rescue system provided by your host and edit the Windows registry offline.
Solution
Use the provider’s rescue mode to boot a temporary Linux system, mount the Windows disk, clear and unlock the Administrator account password with chntpw, then reboot into Windows and set a new password.
1. Boot the VPS into Rescue Mode
- In your VPS provider’s control panel, switch the server to Rescue Mode (Linux rescue/recovery).
- Reboot the VPS into rescue mode using the panel.
- Connect to the rescue system over SSH using the temporary credentials your provider gives you (IP, user, password).
2. Mount the Windows Partition
Once you’re logged into the rescue shell as root (or with sudo):
Unmount in case something is already on /mnt/win (ignore errors)
umount /mnt/win || fusermount -u /mnt/win 2>/dev/null || truemkdir -p /mnt/winmount -t ntfs-3g -o remove_hiberfile,rw,force /dev/sda4 /mnt/winVerify that the Windows system is there:
ls -la /mnt/win/Windows/System32/config/SAMYou should see a SAM file listed with size > 0.
3. Clear and Unlock the Administrator Password with chntpw
Change to the Windows registry directory:
cd /mnt/win/Windows/System32/config
Run chntpw on the SAM database for the Administrator account:
chntpw -u Administrator SAMYou’ll see information about the user and a User Edit Menu similar to:
1 - Clear (blank) user password2 - Unlock and enable user account3 - Promote user (make user an administrator)4 - Add user to a group5 - Remove user from a groupq - Quit editing user, back to user select
Perform these steps:
Type
1and press Enter to clear (blank) the password.
You should see:Password cleared!Type
2and press Enter to unlock and enable the account.
You should see:Unlocked!Type
qand press Enter to quit the user edit menu.When prompted:
Hives that have changed: # Name 0 <SAM> Write hive files? (y/n) [n] :Type
yand press Enter to save the changes.
Then sync and unmount:
sync cd / umount /mnt/win4. Reboot the VPS Back into Windows
Some control panels occasionally show an error when rebooting from rescue, so it’s safer to reboot from the shell:
rebootThis exits rescue mode and boots the normal Windows installation. Wait a few minutes for the system to fully start.
5. Log in via VNC/Console with a Blank Password
- Open your provider’s VNC/console for this VPS.
- At the Windows login screen, select the
Administratoruser. - Leave the password field empty and press Enter.
Because you cleared and unlocked the account, you should now be logged into Windows as Administrator with a blank password.
6. Set a New Secure Administrator Password
Immediately set a strong password. Two common methods:
Option A: Change Password via Ctrl+Alt+End
- In your VNC/console client, use the menu option to send
Ctrl+Alt+End(orCtrl+Alt+Delequivalent to the remote session). - Click Change a password.
- For Old password, leave it blank and press Tab.
- Enter your New password and Confirm password (use a strong, unique password).
- Confirm to apply the change.
Option B: Change Password with Command Prompt
Open Command Prompt as Administrator.
Run:
net user Administrator YourNewStrongPassword123!Replace
YourNewStrongPassword123!with your chosen strong password (12+ characters, mix of letters, numbers, symbols).
You can now log in to the VPS as:
- Username:
Administrator - Password: your new password
via VNC/console or any RDP client (if Remote Desktop is enabled and firewalled correctly).
