Thursday, September 29, 2016

How to Kill a Hyper-V Virtual Machine in Windows Server 2012

Hyper-V virtual machines can, for lack of a better term, get stuck every now and then. There could be a number of reasons why the VM got stuck, but killing the process that equates to a virtual machine might not be obvious to everyone. It wasn't obvious to me, and it took me bit to figure it out. Here's how to do it in Server 2012.

A stuck VM is a virtual machine that cannot be connected to or managed in any way. The guest OS is unresponsive and Hyper-V Manager no longer displays the "Turn Off", "Shut Down", and "Reset" options. Often, stuck VMs present errors like "failed to change state" and/or "the operation cannot be performed while the object is in its current state." If the VM is still running and you don't want to, or cannot, restart the host server, this is how you can stop the VM.

Open an Explorer window and browse to the location where the offending VM is stored. The default location for virtual machine configuration files is C:\ProgramData\Microsoft\Windows\Hyper-V. If this was changed or if you do not know the location of the VM, open Hyper-V Manager, right click on the host server, and select Hyper-V Settings. Under Server, on the left hand side, is the default location for VMs. Mine are stored in F:\Hyper-V\VMs.

If the VM isn't located in the Virtual Machines folder, you might be able to get an idea where the machine is stored by looking at the settings of the VM itself and noting the locations of the checkpoint and/or paging files.

In the VM folder, each virtual machine should have at least a folder and an XML file named with a long string of numbers and letters known as a Globally Unique Identifier (GUID). Note the name of the file or folder.

Open the Task Manager by right clicking on the Taskbar and choosing Task Manager.

Select the Details tab and sort by the Name column. Find the vmwp.exe (Virtual Machine Worker Process) processes and locate the stuck VM by the GUID in the User name column.

Right click on the process for the stuck virtual machine and select End task.

The stuck virtual machine should be dead... dead. This may or may not solve your problem, but the VM should go down. In some cases, you may not regain control of the VM until you restart the host server, but there are situations where killing the VM does come in handy.


  1. 🟢Hire the best and fastest HACKERS on the web today. We give you HACKING SERVICES better than any HACKING group you can find in the internet. Our HACKERS are available for 24/7, always ready to attend to you at any time of the day, anywhere in the world.

    🟢 There are no limits to what we can do. Don’t be surprised we say this. Hacking isn’t as difficult as it sounds, as so many HACKING equipments(softwares, virus, spyware, Trojan) are made available in the dark web and this has made HACKING very easy to perform. There are different varieties of Hacking Service we offer, such a as-:

    ▪️Phone📱📲 Hack, cloning & Tracking✔️
    ▪️Computer 💻 Hacking ✔️
    ▪️Emails 📧 & Social Media account ✔️Hacks/password recovery✔️
    ▪️Tracking/Finging People✔️
    ▪️Raising Money 💰 using (Bitcoin Mining, Money Flip e.t.c)✔️
    ▪️Tracking Scammers and Spammers.✔️
    ▪️Recovery of deleted files e.t.c✔️
    ▪️Scam Money Recovery✔️

    🟢If you need hacking services, PYTHONAX are the group you should contact. We have a strong policy that covers our Clients Privacy. We do not ask our Clients Targets and intention for any job given to us, we simply do our job and provide a strong security to Clients so that our services can’t be traced to them.

    🟠Payment for our services will only be collected after Customers have certified and confirmed the completion of their job. For no reason do we collect upfront for services. But note that Customers will have to pay for Hacking Equipments if necessary before a job would be done.

    🔴Beware of FRAUDSTERS claiming to be HACKERS and ripping people of their money, they saying things and share false testimonies to Attract people and Lure you to them. They are everywhere in the internet and could even be here in this site, be careful of them. We have come across so many of this FRAUDSTERS Victims and some have been lucky to get back what was falsely taken from them.

    Below are list of our emails you can contact if you need our services

    2020 © All Right Reserved.

  2. On the surface, there is no difference between taking your mortgage coming from a bank or a broker. mortgage payment calculator canada Both of these strategies can assist you reduce your payment. mortgage calculator

  3. Interesting article, thank you so much for sharing this amazing blog with us. Visit Sarswati Enterprises for Bottle caps making machinery and Aluminum Caps Making Machinery at an affordable price.
    Bottle Caps Making Machinery

  4. Thank you so much for this innovative post, keep it up for more valuable information. Visit Veramed for Best Quality Herbal and Ayurvedic Products in India and Buy Anti Hairfall Ayurvedic Hair Care Products at best price.
    Best Quality Herbal and Ayurvedic Products in India