I have found some property about HyperV in Win32_PerfRawData, such as
Win32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor,
Win32_PerfRawData_HvStats_HyperVHypervisor, etc.
But when I use the WMI interface to query those property it occurs error.
I use it this way:
var dst []Win32_PerfRawData_HvStats_HyperVHypervisor
q := wmi.CreateQuery(&dst, "")
if err := wmi.Query(q, &dst); err != nil {
return nil, err
It return this: nil 发生意外。 (无效类 ).
The WQL I printed is:
SELECT LogicalProcessors, MonitoredNotifications, Partitions, TotalPages, VirtualProcessors FROM Win32_PerfRawData_HvStats_HyperVHypervisor
So I query it in windows power shell with the command winrm just like this:
winrm enum wmi\root\cimv2\* -filter:"select * from Win32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor where name='LogicalProcessor'";
I have found some property about HyperV in Win32_PerfRawData, such as
Win32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor
,Win32_PerfRawData_HvStats_HyperVHypervisor
, etc.But when I use the WMI interface to query those property it occurs error. I use it this way:
It return this:
nil 发生意外。 (无效类 )
.The WQL I printed is:
So I query it in windows power shell with the command
winrm
just like this:winrm enum wmi\root\cimv2\* -filter:"select * from Win32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor where name='LogicalProcessor'";
I have start the service of HyperV on Windows 10 yet.