- Move machine to another hyper-v host via Failover Cluster Manager Console
- Get ID of duplicated VM
PowerShell1Get-SCVirtualMachine -Name "VMName" |fl id,vmid, virtualmachinestate, hostname
- Double check working and duplicated machine
PowerShell1get-vm -id "ID" | fl id,vmid, virtualmachinestate, hostname
- Delete duplicated VM configuration
PowerShell1get-vm -id "ID" |Remove-SCVirtualMachine -Force
Note the -Force option! You are risking to delete your data If you do NOT put -Force.
5 thoughts on “How to remove duplicated VMs in VMM console”
thank you . good stuff. helped me removed a orphaned VM.
Do you need Hyper-V installed on the VMM server? I run the commands from my vmm server but on step 3 I get the error The Hyper-V role is not installed on the destination host. Thanks
I don’t think that you need Hyper-v role installed on the VMM machine. In fact notes are taken from a VMM running as a virtual machine.
Thank you. Had a look again this morning, and a slight error in my syntax. But all working now.
Wow, this actually fixed the issue, Nice one, Thanks