To verify that the WMI Performance Adapter service is enabled
- Click Start, point to Control Panel, point to Administrative Tools, and then double-click Services.
- Double-click WMI Performance Adapter.
- In the Startup type list, click Manual.
To verify that there are high performance counter objects in WMI
- Use Cscript to run the following script:
' Find all performance classes
computer = .
namespace = root\wmi
Set WMISvc = GetObject(winmgmts:\\ & computer & \ & namespace)
Set colSWbemObjectSet = WMISvc.Subclassesof(Win32_Perf)
for each cls in colSwbemObjectSet
wscript.echo Class name: & cls.path_
The output should look approximately like this:
Class name: \\YOUR-MACHINE\ROOT\wmi:Win32_PerfRawData
Class name: \\YOUR-MACHINE\ROOT\wmi:Win32_PerfFormattedData
Class name: \\YOUR-MACHINE\ROOT\wmi:MSBatteryClass
Class name: \\YOUR-MACHINE\ROOT\wmi:BatteryTemperature
Class name: \\YOUR-MACHINE\ROOT\wmi:BatteryStatus
If Win32_PerfRaw and Win32_PerfFormattedData are the only subclasses, then there are no high-performance objects in WMI. If there are high-performance objects in WMI, verify that they are correctly enabled in Perfmon.
To verify that high-performance counters are correctly enabled in Perfmon
- At the command prompt, type perfmon.exe, and then press ENTER.
- Click the Add button (+). This adds a test WMI object to Perfmon.
- In the Performance objects list, click WMI Objects.
- Click Add, and then click Close.
- In the list of counters, verify that the number of instances for HiPerf Classes is greater than zero.
This procedure confirms that the start type is manual and the WMI Performance Adapter service is enabled. If this corrective action does not solve the problem, check for other error messages that are closer to the root cause.