How to change password of Windows KVM VPS if Reset Password does not work and original password is lost in SolusVM

Internal

Applicable to:

  • SolusVM

Question

How to change the password of Windows KVM VPS if Reset Password does not work and the original password is lost?

Answer

Warning: Make sure to create data backup before proceeding further

1. Stop the VPS.

2. Connect to Slave via SSH

3. Find the path to the VPS disk: # virsh domblklist KVMID

4. Run a filesystem check on the main partition:

kpartx -a -v /dev/vgs/kvmID_img
ntfsfix  /dev/mapper/vgs-kvmID_img2
kpartx -d /dev/vgs/kvmID_img

5. Mount the disk and replace binary Utilman.exe with cmd.exe

guestmount  -a /dev/vgs/kvmID_img -i --rw /mnt_tmp/
cp -a  /mnt_tmp/Windows/System32/Utilman.exe /mnt_tmp/Windows/System32/Utilman.old
cp -a  /mnt_tmp/Windows/System32/cmd.exe  /mnt_tmp/Windows/System32/Utilman.exe
umount /mnt_tmp/

6. Start the VPS.
7. On the login screen (where you need to type the password), press Win + U or click the Ease of Access icon. This will open the command prompt instead of the Ease of Access tools.
8. Execute the command:

net user Administrator new_password

replace new_password with your value.

9. Close the terminal and login into the system using the new password.

 

Once you confirm the new password is applied revert the changes done to files.

 

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.