How to Reset Lost Admin Password for Hyper-V virtual machine

Like most people, you’ve probably lost your Hyper-V virtual machine’s admin password at least once. If you’re looking for a quick and easy way to reset it, you’ve come to the right place. In this blog post, we’ll show you how to Reset Lost Admin Password for Hyper-V virtual machine in just a few simple steps.

How to reset lost admin password for Hyper-V virtual machine

If you have lost the administrator password for your Hyper-V virtual machine, there are a few ways that you can reset it.

  • First, you can try to use the “Forgot my password” feature in Windows. To do this, go to the login screen and click on the “Forgot my password” link. Enter your email address, and you will receive a password reset link.
  • You can try resetting the password from the Hyper-V management console if that doesn’t work. To do this, right-click on the virtual machine and select “Settings.” Under “Security,” there is an option to reset the administrator password.
  • If all else fails, you can always reinstall the operating system. This will wipe all your data, so back up anything important first.

How to change lost admin password for Hyper-V virtual machine

Assuming you have lost the admin password for your Hyper-V virtual machine, there are two ways you can change the password.

The first way is to use the Hyper-V Manager tool, and the second is to use PowerShell.

Hyper-V Manager:

  • Select the virtual machine in question from the list of machines on the left side of the Hyper-V Manager console.
  • Right-click on the selected machine and choose “Settings.”
  • In the “Settings” window, select “Security” from the list of options on the left side.
  • On the right side of the “Security” window, under “Administrator Password,” click on the “Reset” button.
  • In the “Reset Password” window that appears, enter your new password in both fields and click on the “OK” button.
  • Close out of all remaining windows and open up your virtual machine using the new password.

PowerShell:

  • Start by opening PowerShell as an administrator by searching for PowerShell in the Start Menu, right-clicking on it, and selecting “Run as Administrator.”
  • If you are running Windows 8 or 10, you can also press Windows + X to open a menu that includes PowerShell as an option.
  • In PowerShell, type in get-vm ImageName and press Enter (replacing ImageName with what your virtual machine is called).
  • This will give you a list of information about your virtual machine, including its ID number. Please note this number as you will need it in step 4.
  • For example, if my virtual machine were called Windows 7, I would type get-vm Windows 7 and press Enter to get its information, including the ID number).

Network Level Authentication Method:

Network Level Authentication Method(NLA) NLA is a security enhancement that is designed to protect remote desktop services by requiring clients to authenticate themselves before they are given access to a server’s desktop

How to find lost admin password for Hyper-V virtual machine

If you have lost the admin password for your Hyper-V virtual machine, there are a few ways that you can reset it.

How to Reset Lost Admin Password for Hyper-V virtual machine
  • One way is to use the PowerShell cmdlet Reset-VMAdministratorPassword. This cmdlet will reset the administrator password for a VM to its default value.
  • Another way to reset the lost admin password for a Hyper-V virtual machine is to use the Get-VM cmdlet. This cmdlet will retrieve the VM object from which you can extract the password.

Once you have retrieved the password, you can use it to log in to the virtual machine and change the password to something more memorable.

How to create a new password for Hyper-V virtual machine

From the Hyper-V Manager, select the Action menu and then select Virtual Machine Settings.

  • In the Virtual Machine Settings dialogue box, select Security.
  • Select Administrative Password, and then type your new password in the Type password and confirm password boxes.
  • Click OK to save your changes, then click OK again to close the Virtual Machine Settings dialogue box.

How to Reset Lost Admin Password for Hyper-V virtual machine via password recovery:

Two methods can be used to enable password recovery for a Hyper-V virtual machine:

  • Use the Hyper-V Manager console.
  • Use the PowerShell cmdlet Set-VMConsoleAuthentication.

How to Reset Lost Admin Password for Hyper-V virtual machine  using password recovery disk

If you have created a password recovery disk for the administrator account before losing access to it, you can use that disk to reset the password.

To use a password recovery disk:

  • Start or restart your computer, and then press F8 during startup.
  • On the Advanced Boot Options screen, select Repair your computer, and then press Enter. If you don’t have this option, try Method 2.
  • On the System Recovery Options menu, select the optical drive that contains the password recovery disk, and then press Enter.
  • When prompted, insert the password recovery disk into the drive and click Next.
  • In the Password Reset Wizard, follow the instructions on your screen to change your forgotten password.

How to Reset Lost Admin Password for Hyper-V virtual machine using Windows password reset disk

If you had created a password reset disk for Hyper-V virtual machine before you forgot your Windows password, now it’s time to use it to reset your lost admin password.

  • Connect the password reset disk to your locked Hyper-V virtual machine.
  • Select your language and region, and then click “Next”.
  • Click “Reset password”, and then follow the wizard to create a new password for your account.

How to use third-party software to reset lost password for Hyper-V virtual machine

This part will introduce how to use third-party software to achieve a lost password for Hyper-V virtual machine reset. Before we start, please prepare a blank USB flash drive or CD.

How to Reset Lost Admin Password for Hyper-V virtual machine

Download and install the software on an accessible computer. Launch it, and you’ll see an interface as follows:

  • Insert the USB flash drive or CD into the computer, then select it and click “Burn” to create a password reset disk.
  • After the process is completed, eject the USB flash drive or CD from the computer, insert it into your locked Hyper-V virtual machine and set it to boot from USB or CDROM in BIOS.
  • Select the account you want to remove the password from and click the “Reset Password” button on the password reset wizard in the popped window. Then all selected user accounts will be removed from Windows Server 2012 R2 without asking you to enter the current password.
  • Eject the USB flash drive or CD and restart your computer, and then you can sign into Windows Server 2012 R2 without a password required anymore!

Conclusion:

There are various ways to reset a lost admin password; we have tried to cover various options on how to reset lost admin password for Hyper-V virtual machine, do let us know which method helps you to reset the password.  

Related Posts

English