When trying to install the SCCM client, you get this error in ccmsetup.log:
MSI: Setup was unable to compile the file SmsClient.mof
The error code is 8004100E
Is setup is unable to compile SmsClient.mof, this usually points to a corrupted MOF file.
To fix this, run the following commands on the client machine:
- mofcomp C:\Program Files\Microsoft Policy Platform\SchemaNamespaces.mof
- mofcomp C:\Program Files\Microsoft Policy Platform\ExtendedStatus.mof
This will enable the recompile of the mof file.
You can also get the Setup was unable to compile the file SmsClient.mof error if the PC you are trying to install the SCCM Client on is not part of the domain, or needs a reboot.
Other fixes include running this command on the PC:
winmgmt /resetrepository