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...
An error occurred while attempting to connect to a Hyper-V server

An error occurred while attempting to connect to a Hyper-V server

While setting up a new Hyper-V failover cluster I got an error when trying to connect using the Hyper-V manager console: An error occurred while attempting to connect to server “[computername]”. Check that the Virtual Machine Management service is running...