0x8004100E: WMI namespace not found
A WMI namespace does not exist on the machine. In SCCM the client's root\ccm namespace is often missing because the client is not installed or is damaged.
What 0x8004100E means
0x8004100E is the WMI code for "invalid namespace". A query pointed at a namespace such as root\ccm, and WMI has no namespace with that name.
You see it when a script or a tool queries the SCCM client on a machine. You also see it in ccmsetup.log during client install and in ccmeval.log from the client health check.
Common causes
- The SCCM client is not installed on the machine, so
root\ccmdoes not exist. - A client install or uninstall stopped half way.
- The WMI repository was reset or rebuilt, and the client namespaces were lost.
- The script has a typo in the namespace, or it queries a site server namespace on a client.
How to fix 0x8004100E
-
Check that the client is installed
On the machine, look for the SMS Agent Host service and the folder
C:\Windows\CCM. If both are missing, the client is not installed. Install it, then run your query again. -
List the namespaces that exist
Run the first code block. It lists the namespaces under
root. Look forccmin the list. If your script asks for a different name, fix the script.Note that
root\smsexists on site servers that hold the SMS Provider. It does not exist on clients. -
Read ccmsetup.log
Open
C:\Windows\ccmsetup\Logs\ccmsetup.log. Go to the end and find the last return code. If the install failed, fix that error first. The namespace appears only after a full install. -
Reinstall the client
If the client is installed but the namespace is gone, a repair is often not enough. Uninstall with
C:\Windows\ccmsetup\ccmsetup.exe /uninstall. Wait for it to finish inccmsetup.log. Then install the client again. -
Check the WMI repository
If Windows namespaces such as
root\cimv2are also missing, WMI itself is damaged. Runwinmgmt /verifyrepository, thenwinmgmt /salvagerepositoryif it reports a problem.
Commands that help
Get-CimInstance -Namespace root -ClassName __NAMESPACE | Select-Object Name
Get-Service -Name CcmExec -ErrorAction SilentlyContinue | Select-Object Name, Status, StartType
Turn any hex or decimal error code into its meaning, or search every code on this site.