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

HyperV 2012/2012R2 : Querying for Differencing VHD Parent disk - Msvm_VirtualHardDiskSettingData has no instances

$
0
0

Hello,

Because lost of disk storage space is sometime lost on CSV volumes by orphan VHDs, in my hyperv 2012 and 2012R2 clusters, I am trying to retrieve for a given Hyper-V Guest, its storage devices and type. For differencing disks, I am trying to retrieve its parent like in SCVMM Hardware properties.

Using WMI queries, I can retrieve guests, storage config including vhd path but not vhd type and its eventual parent.

I found a wmi class under root\virtualization\v2 called Msvm_VirtualHardDiskSettingData that should do the link but querying the class, no instance is listed.

Why WMI ? well, I am writting a suite of documenting tools that query hyperv hosts and gather config without powershell exec. (running on linux and/or windows)

Or any other WMI Class to query to grab VHD namespace, type and parent VHD  ?

Thanks for inputs...

Th


Viewing all articles
Browse latest Browse all 8743

Trending Articles



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