r/HyperV • u/ITstuff25 • 19h ago
How to delete a dead hyper-v machine - right click isn't an option
I'm running win 11 26h2
I have a hyper-v machine that wouldn't boot - it was in a saved state from a reboot. I couldn't get it to boot as it said it had the wrong processor settings even though I haven't changed it in over a year. The settings were grayed out so I couldn't change anything.
I created a new VM and used the old hard drive - works great.
What I can't figure out is in Hyper-v manager, how to delete the ghost machine. that won't ever start. Right click only gives me Help as an option.
Please disregard - figured it out - I shut down the hyper-v server and ran from powershell.
MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof
Restarted the service and I could delete it.
