How to batch-handle mounted media with SCVMM managed VMs

How to batch-handle mounted media with SCVMM managed VMs

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...