Taylor Brown: This is a follow up on my previous post on Hyper-V WMI: What VHD’s/Physical Disks Are Associated With a Virtual Machine?. I had been getting questions about how to better identify what disks are connected to what bus location/controller. Specifically I have been getting a lot of questions about how back up or copy just the VHD that the guest sees as drive letter C or D etc… I wrote a revised script that gives a bit more information specifically the controller addresses and the Instance ID of the controller. The reason that’s interesting is that you can determine that the C volume is on Disk Number 1 and that Disk Number 1 is connected to IDE Port 0/1 and on the parent you know that IDE Port 0/1 is backed by S:\vhds\foo.vhd well then you know what to backup… So what about SCSI controller’s? Well they are a bit more challenging but not to much – if you look at the PNP ID of the controller its VMBUS\ where the GUID is the same as the first GUID in the WMI instance id for the controller on the management OS.
...