Background
SCCM client installation can failed due to various reasons, one of which could be the following:
MSI: Setup was unable to compile the file ccmclasses.mof
The error code is 8004402F
Error code 8004402F indicates (you can check the code meaning with CMTrace tool: Press CTRL + L to launch Error Lookup window):
Error creating temporary file
Source: Windows Management (WMI)
Most of the time this was caused by lack of “Modify” and “Write” permissions to the temporary folder of the installation user.
Solution
- First, make sure the installation user have local Admin rights
- Then go to Control Panel>System and Security>System>Advanced System settings
- Click on Environment Variables… See the figure below.
- Verify TEMP and TMP in System Variables are respectively C:\windows\TEMP and C:\windows\TEMP
- Make sure that the installation user has Modify and Write permissions to TEMP and TMP
- If the installation fails with the same exception even after those changes, try to compile ccmclasses.mof manually:
- Open command prompt as Administrator
- Navigate into C:\windows\CCM: cd c:\windows\CCM
- Run: mofcomp ccmclasses.mof
- Retry the installation