Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 19461

How to list hard disks and locations attached to the given Hyper-V VM using WMI?

$
0
0

I would like to list the hard disks and its corresponding locations (VHD path where it stored) attached to the given Hyper-V VM using WMI. If you provide any C# sample it would be helpful. We can see those information if you right-click the VM and goto settings under IDE and SCSI controller. I want to get this information programmatically.

Thanks.


Viewing all articles
Browse latest Browse all 19461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>