SCCM Installation displays WMI namespace error code 80041002
When attempting to install the SCCM Client on a pc you may run into a client where the installation fails. In a case I ran into I noticed it failed while trying to create the WMI namespaces for CCM\SoftwareMeteringAgent and CCM\SoftwareUpdates.
The error states it will retry in 120 minutes but it will just fail again.
Question: So what is this telling us?
Answer: This is telling us that WMI does not have a clue what to do.
Resolution: We must first stop the WMI service. You may see a warning about stopping the WMI and CCMSetup Services. Go ahead and say “yes” to stop the services. Once stopped you will need to rename the %WinDir%\System32\Wbem\Repository folder to “repository.old”.
Once the folder is renamed, restart the “Windows Management Instrumentation service”. This will recreate the repository folder.
If it still exists you can restart the CCMSetup service or start a fresh client installation. Monitor the ccmsetup.log file and you will see a successful client installation.