Had one machine just cannot get SCCM agent installed, so when I checked the logs, it said :
MSI: Setup was unable to compile the file DiscoveryStatus.mof The error code is 80041002
it turned out the fix is easy:
Go to C:\Program Files\Microsoft Policy Platform
Run this command : mofcomp ExtendedStatus.mof
Reference:
http://suhassccm.blogspot.com/2014/03/setup-was-unable-to-compile-file.html?_sm_au_=iVVSPWPFp8N5P3NN