WMI and RPC

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.

Hex code0x80041010
Decimal-2147217392
NameWBEM_E_INVALID_CLASS
Logs to readInventoryAgent.log, AppDiscovery.log, ccmsetup.log, ccmeval.log

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

  1. Find the class name

    Open the log and read the line with the code. It names the class or the query. For inventory, InventoryAgent.log shows 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.

  2. 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.

  3. 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.

  4. Rebuild a missing Windows class

    If a standard Windows class such as Win32_OperatingSystem is missing, compile its MOF file again. The command in the second code block adds the core Windows classes back. It changes nothing else.

  5. Reinstall the client for a missing SCCM class

    If the missing class is in root\ccm, repair the client with C:\Windows\CCM\ccmrepair.exe. If that fails, uninstall and install the client again.

Commands that help

Check that a class exists (change the class and namespace) · PowerShell
Get-CimClass -Namespace root\cimv2 -ClassName Win32_OperatingSystem
Add the core Windows WMI classes back · Command Prompt
mofcomp.exe C:\Windows\System32\wbem\cimwin32.mof
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.