So tonight I ran into an issue with a workstation. The SCCM Client simply refused to connect to the ConfigMgr server. I tried running a repair on the client installation, but it came up with an error stating it couldn't create the CCM namespace in WMI.... wtf? Out of all the issues I've ran into, this was a first. I Googled the issue, and after a bit of looking found the following solution... even though I'm not exactly sure what it's doing. It's to late to dig into it to much, I just wanted to post the issue and solution on here before I forgot.
To resolve this... for me anyways, do the following.
- Open command prompt and navigate to %windir%\system32\wbem\
- run "mofcomp cimwin32.mof" (If you get errors, ignore them.)
- run "mofcomp cimwin32.mfl" (Ignore the errors.)
- run "net stop winmgmt
- run "rmdir /s /q repository"
- run "rmdir /s /q logs"
- run "mkdir logs"
- run "net start winmgmt"
You should now be able to run a repair on the SCCM Client and it should begin functioning normally.
Enjoy