SCCM Client Agent repair fail on Windows 10 Client, facing issue on some client machines

Sarfraz Aslam 31 Reputation points
2023-11-16T05:50:43.49+00:00

Hi, i am having issue at few clients where clients are not appearing at SCCM console. Upon check at client "ccmagent.log" found below errors. Moreover, Configuration Manager in control panel is showing blank.

Endpoint Configuration Manager version is 2211

Client is Windows 10 22H2

User's image

CCMSETUP.LOG

==========[ ccmsetup started in process 3544 ]========== ccmsetup 16-Nov-23 10:35:09 AM 20132 (0x4EA4)

Running on platform X64 ccmsetup 16-Nov-23 10:35:09 AM 20132 (0x4EA4)

Detected client installed with version '5.00.9058.1018' ccmsetup 16-Nov-23 10:35:09 AM 20132 (0x4EA4)

Updated security on object C:\Windows\ccmsetup\cache. ccmsetup 16-Nov-23 10:35:09 AM 20132 (0x4EA4)

Launch from folder C:\Windows\ccmsetup\ ccmsetup 16-Nov-23 10:35:09 AM 20132 (0x4EA4)

CcmSetup version: 5.0.9058.1012 ccmsetup 16-Nov-23 10:35:09 AM 20132 (0x4EA4)

Folder 'Microsoft\Microsoft\Configuration Manager' not found. Task does not exist. ccmsetup 16-Nov-23 10:35:09 AM 20132 (0x4EA4)

Folder 'Microsoft\Microsoft\Configuration Manager' not found. Task does not exist. ccmsetup 16-Nov-23 10:35:09 AM 20132 (0x4EA4)

Updating MDM_ConfigSetting.ClientDeploymentErrorCode with value 0 ccmsetup 16-Nov-23 10:35:09 AM 20132 (0x4EA4)

[Win10ComputerName] Running on 'Microsoft Windows 10 Enterprise' (10.0.19045). Service Pack (0.0). SuiteMask = 272. Product Type = 18 ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Ccmsetup command line: "C:\Windows\ccmsetup\ccmsetup.exe" /remediate:client /log:"C:\Windows\CCM\logs\repair-msi-4812D39E-A2E8-46B8-B09A-CFC7B8FCA172.log" ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Loaded command line: "C:\Windows\ccmsetup\ccmsetup.exe" /log:C:\Windows\CCM\logs\repair-msi-4812D39E-A2E8-46B8-B09A-CFC7B8FCA172.log "/config:C:\Windows\ccmsetup\MobileClientUnicode.tcf" "/runservice" CCMCERTSTORE="MY" CCMFIRSTCERT="1" CCMHTTPPORT="80" CCMHTTPSPORT="443" CCMHTTPSSTATE="1248" CCMPKICERTOPTIONS="1" FSP="SCCMAppServer" INSTALL="ALL" MANAGEDINSTALLER="0" SMSSITECODE="CEN" smsmplist="SCCMAppServer" ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Config file C:\Windows\ccmsetup\MobileClientUnicode.tcf specified in /config: switch does not exist. ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

SslState value: 1248 ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Failed to access configuration file (0x80070002) ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

LoadConfigFile failed with error 0x80070002 ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Failed to parse '"C:\Windows\ccmsetup\ccmsetup.exe" /log:C:\Windows\CCM\logs\repair-msi-4812D39E-A2E8-46B8-B09A-CFC7B8FCA172.log "/config:C:\Windows\ccmsetup\MobileClientUnicode.tcf" "/runservice" CCMCERTSTORE="MY" CCMFIRSTCERT="1" CCMHTTPPORT="80" CCMHTTPSPORT="443" CCMHTTPSSTATE="1248" CCMPKICERTOPTIONS="1" FSP="SCCMAppServer" INSTALL="ALL" MANAGEDINSTALLER="0" SMSSITECODE="CEN" smsmplist="SCCMAppServer"' with error 0x80070002 ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Sending state '307'... ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Updating MDM_ConfigSetting.ClientDeploymentErrorCode with value 2147942402 ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

[5.00.9058.1018] Params to send '5.0.9058.1012 Remediation "C:\Windows\ccmsetup\ccmsetup.exe" /log:C:\Windows\CCM\logs\repair-msi-4812D39E-A2E8-46B8-B09A-CFC7B8FCA172.log "/config:C:\Windows\ccmsetup\MobileClientUnicode.tcf" "/runservice" CCMCERTSTORE="MY" CCMFIRSTCERT="1" CCMHTTPPORT="80" CCMHTTPSPORT="443" CCMHTTPSSTATE="1248" CCMPKICERTOPTIONS="1" FSP="SCCMAppServer" INSTALL="ALL" MANAGEDINSTALLER="0" SMSSITECODE="CEN" smsmplist="SCCMAppServer"' ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

<ClientDeploymentMessage ErrorCode="-2147024894"><Client Baseline="1" BaselineCookie="" Platform="2" Langs=""/></ClientDeploymentMessage> ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Failed to raise pending client deployment state message. Error 0x80041010 ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Sending message with STATEID='307' via the existing client. ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Failed to open StateMsg namespace with error 0x8004100e ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Failed to send state message via the existing client. Error 0x8004100e ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Failed to send status 307. Error (8004100E) ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Sending state '301'... ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Updating MDM_ConfigSetting.ClientDeploymentErrorCode with value 2147942402 ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

CcmSetup failed with error code 0x80070002 ccmsetup 16-Nov-23 10:35:10 AM 20132 (0x4EA4)

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
980 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
485 questions
Microsoft Configuration Manager
{count} votes

3 answers

Sort by: Most helpful
  1. Sarfraz Aslam 31 Reputation points
    2023-11-17T12:13:42.17+00:00

    Hi @Simon Ren-MSFT ,

    Thank you for response.

    Issue has been fixed but let me first answer your queries and then the steps i did. Basically i performed the steps for some other issue and today morning i checked that SCCM client uninstalled automatically, previously i tried to install and uninstall manually but it failed. After that i installed client manually without any issues.

    1,Can we manually re-install the SCCM client agent on these few computers?

    I had tried that but there was an error and exited with error code.

    2,Please check your boundaries and boundary groups configurations, and associate your MPs and DPs to the boundary groups. Make sure the client can communicate with the MPs and DPs.

    I had checked that and found no issue.

    3,Please also make sure your Firewall doesn't block the communication between the client and site system servers.

    Checked from network team and all communication was allowed.

    Details:

    After SCCM agent having problem my PC was rebooted on daily basis as it update windows so i just paused Windows Update and after this change SCCM agent installed successfully. If this is something related to this problem kindly let me know and my apology for the long explanation :)

    1 person found this answer helpful.
    0 comments No comments

  2. Simon Ren-MSFT 34,321 Reputation points Microsoft Vendor
    2023-11-17T08:43:50.8766667+00:00

    Hi @Sarfraz Aslam ,

    Thanks for reaching out to Microsoft Q&A.

    From your CCMSETUP.LOG, the repair msi log is C:\Windows\CCM\logs\repair-msi-4812D39E-A2E8-46B8-B09A-CFC7B8FCA172.log

    The error 0x80070002 means "The system cannot find the file specified". The error 0x80041010 means "Invalid class". And he error code 0x8004100e means "Invalid namespace".

    1,Can we manually re-install the SCCM client agent on these few computers?

    2,Please check your boundaries and boundary groups configurations, and associate your MPs and DPs to the boundary groups. Make sure the client can communicate with the MPs and DPs.

    3,Please also make sure your Firewall doesn't block the communication between the client and site system servers.

    Thanks for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Simon Ren-MSFT 34,321 Reputation points Microsoft Vendor
    2023-11-20T09:16:04.1033333+00:00

    Hi @Sarfraz Aslam ,

    Thanks very much for your feedback and sharing. Per my experience, this issue may be related to Windows update. We're glad that the issue is gone now. It's appreciated that you could click "Accept Answer" to the helpful reply, this will help other users to search for useful information more quickly. Here's a short summary for the problem.

    Problem/Symptom:

    Some Windows 10 clients are not appearing at SCCM console with the error 0x80070002 and 0x80041010 in CCMSETUP.log.

    Meanwhile, Configuration Manager applet in control panel is showing blank.

    Solution/Workaround:

    Paused Windows Update, uninstalled SCCM agent and re-installed SCCM agent manually.

    Thanks again for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.