Hyper V WMI Query


we have requirement query diskcontrollers in hyper v using wmi(c#).also necessary query disk information along partitions data . requires disk volume informations along partitions.


c

i guess irregardless of specifications , requirements, intent of wmi query?  (as there might easier way).

you mention getting disk controllers, , there attempting derive disks.  now, mention 'associated vms'.  so, assume want disks , not disks registered hyper-v default storage locations - disk storage.  under win32.

my point is, intent might lead easier , better path requirements document dictates.

there bunch of examples here using vb scripts, class usage demonstrated:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa394592(v=vs.85).aspx

here hitch.  hyper-v forum , information youwant in virtualization namspace , in win32 namespace.  , familiarity cim in general comes play.

disk controllers technically under win32 namespace of the management os.  general hardware items.  has been configured hypervisor find under virtualization namespace.  won't find system information under virtualization namespace.  intent better defines look.

using example, information volumes vms stored.  query return informaiton related configured vms.  if hyper-v server has 0 vms, in final value path?


brian ehlert (hopefully have found useful) http://itproctology.blogspot.com
learn. apply. repeat.
disclaimer: backup, test backup, try new things. attempting change of own free will.




Windows Server  >  Hyper-V



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS