80041010 – The specified class is not valid
This is quite an ambiguous message, as there can be different causes to it, among which are:
- If certain services (for example, Exchange) are not started when the WMI AutoDiscovery/AutoPurge (ADAP) process is started, the performance counters are not transferred to WMI because WMI uses ADAP to build its internal performance counter table. Follow the steps below to fix this. For more details, please see this article (deprecated, but still available via archive.org and the information is still valid).
- Open a command console.
- Execute wmiadap.exe /f
- Start WMI.
- Performance Counters are disabled for a specific service. There is a registry entry for WMI counters for each service. To check and fix this you have to edit the Windows registry. For more details, please see this article (deprecated, but still available via archive.org and the information is still valid).
Caution: Please back up your system before manipulating the Windows registry!
- Key: HKLM\SYSTEM\CurrentControlSet\Services\Service-name\Performance
- Data type: REG_DWORD
- Range: 0|1
- Default value: 0
- According to Microsoft: "If the value of this entry is 1, then the Performance Library (Perflib) does not retrieve performance data about these counters from the registry. As a result, System Monitor and other tools that use the data cannot display it. Instead, the tools display a value of 0 or 100 percent, depending on the counter."
- To activate changes, restart the Windows computer.
See also the article What are the most common errors when monitoring WMI?
Also, we would suggest following the order defined in the WMI repair list.
Add comment