Querying Win32_OptionalFeature seems to equire administrative rights (at least on Server 2012 R2). Instead of querying installed features, see if the Win32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor class exists.
Also included a small tweak to allow VS to identify the dynamic members in WmiDynamic.
Querying
Win32_OptionalFeature
seems to equire administrative rights (at least on Server 2012 R2). Instead of querying installed features, see if theWin32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor
class exists.Also included a small tweak to allow VS to identify the dynamic members in
WmiDynamic
.