0x80041010: WMI class not found
A WMI class that was asked for does not exist on the client. In SCCM it shows in inventory, in WMI queries and when the client is damaged.
What 0x80041010 means
0x80041010 is the WMI code for "invalid class". The namespace exists, but the class name in the query is not in it.
You see it in InventoryAgent.log when hardware inventory asks for a class the client does not have. You also see it from WQL queries in detection methods, in requirements and in task sequence conditions. If the missing class belongs to the SCCM client, the client itself is damaged.
Common causes
- Hardware inventory is set to collect a custom class that exists only on some machines.
- A query has a typo in the class name or uses the wrong namespace.
- The class belongs to software or a driver that is not installed on this client.
- The WMI repository was reset, and the classes of the SCCM client or of Windows were not built again.
How to fix 0x80041010
-
Find the class name
Open the log and read the line with the code. It names the class or the query. For inventory,
InventoryAgent.logshows the query it ran just before the error.A missing class in hardware inventory is often harmless. The client skips it and sends the rest.
-
Test the class on the client
Run the first code block on the client with the class name and namespace from the log. If it returns the class, the query in SCCM is wrong. If it returns nothing, the class is not on this client.
-
Fix the query or limit it
Correct the class name or the namespace in your query. If the class exists only on some hardware, do not ask every client for it. For inventory, turn the class on in a custom client settings object and deploy that to the right collection.
-
Rebuild a missing Windows class
If a standard Windows class such as
Win32_OperatingSystemis missing, compile its MOF file again. The command in the second code block adds the core Windows classes back. It changes nothing else. -
Reinstall the client for a missing SCCM class
If the missing class is in
root\ccm, repair the client withC:\Windows\CCM\ccmrepair.exe. If that fails, uninstall and install the client again.
Commands that help
Get-CimClass -Namespace root\cimv2 -ClassName Win32_OperatingSystem
mofcomp.exe C:\Windows\System32\wbem\cimwin32.mof
Turn any hex or decimal error code into its meaning, or search every code on this site.