How do I fix Collections failing with "Invalid Class" Errors?
If WMI collections fail with an error referencing Invalid Class (example at the end of this topic), resynchronizing the performance counters may correct the issue.
To resynchronize the performance counters, run the following from the command line on the computer that you are trying to monitor:
- For Windows 2003/2008/XP run:
winmgmt /resyncperf
- For Windows 2000 run the following (substituting the process ID of the Winmgmt process):
winmgmt /resyncperf {Winmgmt_Process_ID}
The Winmgmt_Process_ID can be found from the Task Manager. Open TaskManager, click the Processes tab, and find the PID for process WinMgmt.exe.
For example, if the PID of WinMgmt.exe is 1344, then type
winmgmt /resyncperf 1344 - After running the winmgmt command, restart the WMI service on the target computer.
Example of an Invalid Class error:
This collection is not registered. Collection registration failed.
Resolve cause of inner exception
Registration failed for new collection.
Registration to SS failed.
The Statistics Server could not complete the request.
Error when registering a collection. Check Error Log for more details.
Failed to collect from WmiV2: retVal=0x80041010, computer=xxxxxxxx, The enumerator terminated with an 'Invalid Class' error for query Select * from Win32_PerfRawData_PerfOS_System, HRESULT=0x80041010
A general error occurred: Failed to collect from WmiV2: retVal=0x80041010, computer=xxxxxxxxx, The enumerator terminated with an 'Invalid Class' error for query Select * from Win32_PerfRawData_PerfOS_System, HRESULT=0x80041010
No remedy is available.