Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING CCMsetup failing with error "unable to compile the file InventoryAgentSchema.mof"

  • Thread starter Thread starter Bhumika
  • Start date Start date
  • Replies Replies 3
  • Views Views 4K

Bhumika

New Member
Messages
2
Reaction score
0
Points
1
Hi,

Please help me with below error Getting this error on few devices while installing mecm client.

MSI: Setup was unable to compile the file InventoryAgentSchema.mof
The error code is 80040154 ccmsetup 4/20/2023 5:37:16 AM 7092 (0x1BB4)
MSI: Action 5:37:17: Rollback. Rolling back action: ccmsetup 4/20/2023 5:37:17 AM 7092 (0x1BB4)
File C:\Windows\ccmsetup\{AFEBCEB6-C9FE-4BF6-9C63-24020C95EF03}\client.msi installation failed. Error text: ExitCode: 1603
Action: CcmRegisterWmiMofFile.
ErrorMessages:
Setup was unable to compile the file InventoryAgentSchema.mof
The error code is 80040154
ccmsetup 4/20/2023 5:37:20 AM 7092 (0x1BB4)
Next retry in 120 minute(s)... ccmsetup 4/20/2023 5:37:20 AM 7092 (0x1BB4)

Have tried below steps but still issue persists. Please help.
  1. ccmsetup.exe /uninstall
  2. repair wmi
  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. re-execute ccmsetup.exe
 
Have you tried to manually compile the mof file to see what is the real error with the complie?
 
Have you tried to manually compile the mof file to see what is the real error with the complie?

c:\Windows\CCM>mofcomp InventoryAgentSchema.mof
Microsoft (R) MOF Compiler Version 6.2.9200.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: InventoryAgentSchema.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while creating object 5 defined on lines 96 - 98:
0X80041002 Class, instance, or property 'CCM_Policy' was not found.
Compiler returned error 0x80041002
 
Back
Top