When remediating Hyper-V clusters with System Center Virtual Machine Manager it sometimes happens that there are still isos mounted to virtual dvd drives and that, therefore, vms cannot be live migrated to other hosts.

Here are 2 snippets to see which vms have isos mounted – and what those isos are. Second is a snippet to dismount any mounted isos in all vmm managed vms.


This small snippet lists all SCVMM VMs (with Name, Host, Connection type and Iso name) that have media attached to their DVD drives.


This small snippet removes mounted media from all SCVMM VMs.