ludi2014 Posted November 14, 2014 Report post Posted November 14, 2014 Try this In an elevated Powershell window, run this: Get-WMIObject -namespace “root” -query “SELECT * FROM __Namespace where name = ‘ccm’” | remove-wmiobject last solution will be is unistall MP role and install MP. sg http://www.learnmesccm.com/ https://www.linkedin...ahic/a0/842/b21 Quote Share this post Link to post Share on other sites More sharing options...
drewz99 Posted November 14, 2014 Report post Posted November 14, 2014 What exactly will this script be doing? Would like to fully understand prior to running. thank you Quote Share this post Link to post Share on other sites More sharing options...
ludi2014 Posted November 14, 2014 Report post Posted November 14, 2014 This will remove CCM from WMI namespaces info about wmi and sccm is here . http://www.informit.com/articles/article.aspx?p=1926197&seqNum=4 sg http://www.learnmesccm.com/ https://www.linkedin...ahic/a0/842/b21 Quote Share this post Link to post Share on other sites More sharing options...
emilchik Posted December 5, 2017 Report post Posted December 5, 2017 I know it's an OLD post, but it did come up when I searched for the resolution of the same problem. I had spent almost 2 days troubleshooting this issue by myself and with MSFT CAS rep. After running Process monitor I noticed that MOFCOMP.exe is trying to access C:\Windows\Temp folder to write some temp file. I examined that folder and found that it has over 74,000 files in it dating as far back as 3 years ago. I deleted all files in it (it had some files in use or locked, but MAJORITY of them have been removed), then restarted SMS Executive service and it all started to work. Next morning I validated packages and it all was distributed and re-validated successfully. Later on, I found that user Rbaker0 had the same solution on the TechNet forum: https://social.technet.microsoft.com/Forums/en-US/574a9a72-1276-4500-94f3-12b0a31f1364/mofcompexe-failed-delete-the-classes-and-retry-compiling-0x8004400a-unexpected-token-at-file?forum=configmanagergeneral Quote Share this post Link to post Share on other sites More sharing options...