“CcmSetup failed with error code 0x80041010” in SCCM

Published by Nyau Wai Hoe - Updated on

The System Center Configuration Manager (SCCM), now known as Microsoft Endpoint Configuration Manager (MECM), serves as a critical tool for managing a wide variety of endpoints within an organization. It, however, is not without its occasional bumps and errors. One such error that may arise during the Configuration Manager client agent installation is the “CcmSetup failed with error code 0x80041010.” This error, while not pervasive, can be a hindrance when trying to install the ConfigMgr client on certain computers. In this article, we will look into the specifics of this error, its causes, and potential solutions to resolve it.

Also see: Uninstall SCCM Client Manually in Windows 10/11 via CMD

CcmSetup failed with error code 0x80041010 in SCCM

Understanding the 0x80041010 error in SCCM

The error code 0x80041010, in the context of SCCM, essentially translates to an “unknown error“, making it a bit nebulous to troubleshoot without closer inspection. To uncover more details about the problem, IT administrators typically turn to the ccmsetup.log file located on the client computer. This log is invaluable, documenting the various steps and outcomes during client agent installation.

Moreover, there can be instances where error messages accompanying the “0x80041010” suggest incompatibility with the Windows version. Such messages, as an example, might read “OS is not Win10RS3+,” even if the device operates on a newer Windows version, e.g., Windows 10 21H2. Sometimes, there are even messages about the unavailability of a Fallback Status Point or issues with policy namespace connections.

OS is not Win10RS3+

The log might also contain additional errors and information, hinting at missing or invalid Management Points (MPs) and other client-side issues. It’s worth noting, however, that this error doesn’t appear universally on all computers, suggesting environmental or specific configuration-related triggers.

Tip: If you come across such errors in SCCM, you can decipher them using error lookup tools that ConfigMgr provides. These tools can be instrumental in understanding the root cause behind various error codes.

How to fix the CcmSetup failed with error code 0x80041010 issue

The resolution process for the error code 0x80041010 generally involves a mix of general troubleshooting steps and more targeted solutions.

1. WMI repairs

Windows Management Instrumentation, often abbreviated as WMI, is an integral component of the Windows operating system that provides management information and control in an enterprise environment. Given its critical role, any corruption or issues with WMI can adversely impact various operations, including the installation of the Configuration Manager client agent.

Why WMI matters in SCCM

In the SCCM context, WMI offers a foundation upon which many Configuration Manager operations build. For example, SCCM leverages WMI to retrieve system metrics, establish client settings, and more. Hence, a malfunctioning WMI can lead to the dreaded “CcmSetup failed with error code 0x80041010” error.

Steps to repair WMI

Should you confirm that WMI is the root cause, consider the following repair process:

  1. Stop the WMI Service: Before making any modifications, it’s imperative to halt the winmgmt (Windows Management Instrumentation) service. This can be accomplished with the command Net Stop winmgmt.
  2. Reset WMI Repository: Sometimes, the repository where WMI stores its data becomes corrupt. Resetting it can resolve many underlying issues. The command RD /S /Q repository in the wbem directory can achieve this.
  3. Re-register DLLs: WMI relies on several DLLs. Re-registering them ensures they function correctly. This step involves multiple commands, such as regsvr32 /s %SystemRoot%\system32\scecli.dll.
  4. Re-compile MOF Files: MOF (Management Object Format) files describe information within WMI. Re-compiling them with the mofcomp command can address discrepancies and errors.
  5. Restart WMI Services: After all the repair actions, it’s vital to restart the WMI service with the Net Start winmgmt command.
  6. Validation: Re-attempt the SCCM client agent installation and see if the error code 0x80041010 is resolved.

Alternatively, you can run the script provided below. To do so, copy the script, paste it into a text file, save it as a .bat file, and then run the script as an administrator.

CcmSetup failed with error code 0x80041010

Net Stop winmgmt
C:
CD %SystemRoot%\System32\wbem
RD /S /Q repository
regsvr32 /s %SystemRoot%\system32\scecli.dll
regsvr32 /s %SystemRoot%\system32\userenv.dll
for /f %%s in (‘dir /b /s *.dll’) do regsvr32 /s %%s
scrcons.exe /regserver
unsecapp.exe /regserver
winmgmt.exe /regserver
wmiadap.exe /regserver
wmiapsrv.exe /regserver
wmiprvse.exe /regserver
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in (‘dir /b *.mof’) do mofcomp %%s
for /f %%s in (‘dir /b *.mfl’) do mofcomp %%s

Fix 0x80041010 error Windows 11 10

After implementing the script, it’s a good practice to restart the client computer before attempting to reinstall the SCCM client agent.

Considerations

While the above steps can resolve many WMI-related issues, remember that each client machine can have its unique environment and challenges. Always ensure you have backups, especially when working with critical system components, and consider testing the repair steps on a subset of machines before wide-scale deployment.

2. Addressing DNS Issues

DNS (Domain Name System) issues are another common contributor to the error 0x80041010. For instance, if the client machine cannot resolve the SCCM Management Point Server due to DNS issues, the installation will inevitably fail.

The importance of DNS in SCCM

SCCM, or System Center Configuration Manager, heavily depends on DNS to identify and communicate with clients, distribution points, management points, and other infrastructure components. If the client machine cannot resolve the SCCM server’s hostname to its IP address (or vice versa), the installation or operation of the SCCM client can fail.

Common DNS symptoms in SCCM

Issues with DNS may manifest in SCCM in various ways, including:

  • The client machine is unable to resolve the SCCM server’s name.
  • Errors in the ccmsetup.log indicating a failure to locate Management Point (MP) or source location.
  • Delays or failures in policy retrieval or application deployments due to DNS lookup failures.

Troubleshooting steps

  1. Check Host Resolution: Use the nslookup command to check whether the client machine can resolve the SCCM server’s hostname and vice versa. For instance, nslookup SCCMServerName.
  2. Validate DNS Records: Ensure that the necessary SCCM DNS records (like those for Management Points) are present and correct. Any discrepancies can disrupt SCCM operations.
  3. Inspect Network Configuration: Occasionally, an incorrect subnet mask or gateway might lead to DNS resolution issues. Validate the network configuration on both the client and server ends.
  4. Flush DNS Cache: Sometimes, old or corrupted entries in the DNS cache can cause issues. Use the ipconfig /flushdns command on the client machine to clear the DNS resolver cache.
  5. Update Group Policies: DNS settings can often be influenced by Group Policy Objects (GPOs). Running the gpupdate /force command ensures that the latest policies are applied to the client machine.

Related resource: DNS Servers to Unblock Websites and Possibly Everything

Considerations

If DNS concerns persist even after trying the aforementioned steps, consider delving deeper with advanced tools like Wireshark to capture network packets or seeking assistance from your network team. Remember, a harmonious SCCM environment requires that both the application layer (like SCCM itself) and the foundational layers (like DNS) function without a hitch.

Concluding thoughts

SCCM or MECM is a robust tool, but like any software, it’s prone to occasional glitches and hitches. While the error code 0x80041010 might seem daunting initially, a methodical approach to troubleshooting—combined with the insights from logs and error lookup tools—can provide the needed clarity. Remember, every error comes with an opportunity to learn more about the intricacies of the system. So, whenever faced with such challenges, approach them as learning opportunities.


Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of WindowsDigitals.com. With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.

Share via
Copy link