Tried and tested this solution long ago to fix an SCCM 2012 client installation issue, but recently had to use the same steps again so I thought may be I should post a small blog.

Problem: SCCM 2012 Client failed to install despite several client push attempts, WMI remediation, clear ccmcache, etc.

CCMsetup.log indicated “MSI: Setup was unable to compile the file DiscoveryStatus.mof The error code is 80041002”Error 80041002_ccmsetup_log

Client.msi.log indicated “Installation operation failed”Error 80041002_clientmsi_log

Finding: In case of WMI rebuild, certain mof files could get missed out from getting into WMI repository, causing the mof compilation error /mof file corruption:

Solution: To solve the issue:

  1. Launch elevated command prompt
  2. Execute the command in bold: mofcomp C:\Program Files\Microsoft Policy Platform\ExtendedStatus.mof