Close Menu
    Facebook X (Twitter) Instagram
    Monday, July 14
    X (Twitter) LinkedIn
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»SCCM Configmgr 2012 Client issue Setup was unable to compile the file AppSynclet_Local.mof 80041002

    SCCM Configmgr 2012 Client issue Setup was unable to compile the file AppSynclet_Local.mof 80041002

    Eswar KonetiBy Eswar KonetiApril 16, 3:56 pm1 Min Read CM2012 22,016 Views
    Share
    Facebook Twitter LinkedIn Reddit

    I was troubleshooting configmgr 2012 R2 client,the other day ,I found below error from ccmsetup.log

    MSI: Setup was unable to compile the file AppSynclet_Local.mof The error code is 80041002

    Error code 80041002 says ,Not found.Source: Windows Management (WMI)

    image

     

    image

    I tried compiling the AppSynclet_Local.mof (C:\windows\ccm) file, it throw error saying,syntax errors in line 22. This pushed me to cop MOF file from working PC if that make any difference but it did not work.

    if you look into the mof file,it is trying to operate on \\Root\\CCM\ namespace ,which do not exist on the problem client.

    I suspected this is WMI issue but repairing the wmi did not fix the problem. (Repairing wmi and installing the client did not solve the issue)

    Finally ,I decided to play with SMSCFG.INI and SCCM certificates if they found on the PC . steps that I listed below worked for this problem.

    1. ccmsetup.exe /uninstall
    2. repair wmi using script available here
    3. RD /s /q "C:\Windows\ccmsetup"
    4. RD /s /q "C:\Windows\CCM"
    5. RD /s /q "C:\Windows\system32\CCM"
    6. DEL /q "C:\windows\smscfg.ini
    7. REG DELETE HKLM\software\Microsoft\ccm /f
    8. REG DELETE HKLM\software\Microsoft\CCMSETUP /f
    9. REG DELETE HKLM\software\Microsoft\SMS\
    10. REG DELETE HKLM\software\Microsoft\Systemcertificates\SMS\Certificates /f
    11. ccmsetup.exe SMSSITECODE=PS1 SMSMP=SGCM01.Corp.eskonr.com (replace your command line properties)

    Hope it helps!

    80041002 AppSynclet_Local.mof Client issue client.msi failed with exit code:1630 CM12 configmgr SCCM unable to compile
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Optimize Your Intune Workflow with a Powerful Browser Extension

    March 22, 10:39 am

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    15 Comments

    1. RyanH on November 15, 2018 10:49 PM

      ## Uninstall CCMCLient ##

      Start-Process "C:\Windows\ccmsetup\ccmsetup.exe" -argumentlist "/uninstall" -Wait

      ## Repair WMI ##
      Start-Process "C:\Windows\System32\wbem\WinMgmt.exe" -ArgumentList "/clearadap" -Wait
      Start-Process "C:\Windows\System32\wbem\WinMgmt.exe" -ArgumentList "/kill" -wait
      Start-Process "C:\Windows\System32\wbem\WinMgmt.exe" -ArgumentList "/unregserver" -wait
      Start-Process "C:\Windows\System32\wbem\WinMgmt.exe" -ArgumentList "/regserver" -wait
      Start-Process "C:\Windows\System32\wbem\WinMgmt.exe" -ArgumentList "/resyncperf" -wait

      Stop-Service winmgmt -Force

      Remove-Item -Path "C:\Windows\system32\wbem\repository.old" -Force | Out-Null
      Remove-Item -Path "C:\Windows\system32\wbem\Repository\repository.old" -Force | Out-Null

      Start-Process "C:\Windows\System32\regsvr32.exe" -ArgumentList "/s C:\Windows\System32\system32\scecli.dll" -Wait
      Start-Process "C:\Windows\System32\regsvr32.exe" -ArgumentList "/s C:\Windows\System32\system32\userenv.dll" -Wait

      $dlls = Get-ChildItem "C:\Windows\System32\wbem\" -Filter *.dll
      $mofs = Get-ChildItem "C:\Windows\System32\wbem\" -Filter *.mof
      $mfls = Get-ChildItem "C:\Windows\System32\wbem\" -Filter *.mfl

      ForEach ($dll in $dlls){

      Start-Process "C:\Windows\System32\regsvr32.exe" -ArgumentList "/s $dll.fullname" -Wait -PassThru

      }

      ForEach ($mof in $mofs){

      Start-Process "C:\Windows\System32\wbem\mofcomp.exe" -ArgumentList "/s $mof.fullname" -Wait -PassThru

      }

      ForEach ($mfl in $mfls){

      Start-Process "C:\Windows\System32\wbem\mofcomp.exe" -ArgumentList "/s $mfl.fullname" -Wait -PassThru

      }

      Start-Service winmgmt -Force

      Start-Process "C:\Windows\System32\wbem\wmiprvse.exe" -ArgumentList "/regserver" -Wait

      Remove-Item "C:\Windows\ccmsetup" -Force -Recurse | Out-Null
      Remove-Item "C:\Windows\CCM" -Force -Recurse | Out-Null
      Remove-Item "C:\Windows\System32\CCM" -Force -Recurse | Out-Null
      Remove-Item "C:\Windows\smscfg.ini" -Force -Recurse | Out-Null

      Remove-Item -Path HKLM:\SOFTWARE\Microsoft\CCM -Force -Recurse | Out-Null
      Remove-Item -Path HKLM:\SOFTWARE\Microsoft\CCMSETUP -Force -Recurse | out-null
      Remove-Item -Path HKLM:\SOFTWARE\Microsoft\SMS -Force -Recurse | out-null
      Remove-Item -Path HKLM:\SOFTWARE\Microsoft\SystemCertificates\SMS\Certificates -Force -Recurse | out-null

      Reply
      • Eswar Koneti on November 24, 2018 11:42 PM

        hi,
        thanks for the update and appreciate your sharing.

        Thanks,
        Eswar

        Reply
    2. Pingback: Rebuild a failed SCCM client | Scripting, Etc.

    3. Martin on April 20, 2016 5:02 PM

      i am troubleshooting SCCM Clients for Customers this one is one of my favourites
      very usefull thanks

      Reply
      • Eswar Koneti on April 20, 2016 6:09 PM

        Hi Martin,
        Glad that, it worked out for you.

        Reply
    4. Remco on November 2, 2015 10:27 PM

      Hey Eswar,

      I did run into this problem today and was unable to fix it by rebuilding the WMI repo and uninstalling the client.

      I followed the extra steps mentioned here and after that the client installed flawless! Thanks!

      Reply
      • Eswar Koneti on November 3, 2015 9:31 AM

        Great Remco,Glad it solved your issue .

        Reply
    5. Carlos on September 16, 2015 2:38 AM

      Hello Eswar,

      Just wanted to drop a line to say thank you so much for the excellent detailed steps on how to successfully complete an SCCM installation. I was getting the error above and now re-trying the installation it is successful.

      Regards,

      CMI

      Reply
      • Eswar Koneti on September 16, 2015 7:48 AM

        Great ,thanks for your kind words Carlos and hope you have enjoyed reading this blog.

        Reply
    6. Sandy on April 16, 2015 9:21 PM

      Do you know about this error fix?
      MSI: Varoitus 25702. Failed to uninstall PrepDrvr.Sys for Software Metering Agent.

      Reply
      • Eswar Koneti on April 23, 2015 3:03 PM

        i have not seen this error ,no fix for now but you can troubleshoot based on the logs (ccmsetup.log,client.msi.log) .you can do clean ccmsetup uninstall ,try install.

        Reply
    7. Nawaz Kazi on April 16, 2015 7:01 PM

      How can get this into report.

      Reply
      • Eswar Koneti on April 23, 2015 2:46 PM

        report for this specific error ? not an easy task but you can use FSP reports to check client installation failures .

        Reply
    8. Sreekanth on April 16, 2015 5:20 PM

      Hi Eswar, Thank you for the post.

      Can we use the same steps for general WMI issues where clients did not get installed with Client push installation.

      Reply
      • Eswar Koneti on April 23, 2015 2:44 PM

        can use but if the issue is more related to WMI,you should correct the wmi instead of doing other steps but there is nothing wrong in doing steps what i said in the post.

        Reply

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2024 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.