I recently ran into an issue were VMs had the status Unsupported Cluster Configuration after some VMs failed over, due to a hardware issue. Upon investigating, I discovered that these VMs all had locally attached ISO files. As you can image this can be quite a problem in a high availability scenario. To prevent this from happening again, I wrote a quick PowerShell script that you can run against VMM to query every VM and return their attached ISOs. I have included a copy of this script below.

 

$VM = Get-SCVirtualMachine

$results = ""

Foreach ($vm in $VM)

{

    $iso = Get-SCVirtualDVDDrive -VM $VM | ?{$_.ISO -ne $null}

    if ($iso -ne $null)

    {

        $results = $results + "`n" + $iso.Name + " – " + $iso.ISO

    }

}

$results

 

This script requires that the Virtual Machine Manager 2012 PowerShell Module is loaded.