Fixing error in CAS.log “CacheConfig::InitializeFromWmi – GetSWDistSiteSettings failed with 0x80004005. Default site settings will be used”

The problem was that after push install of the Configuration client from SCCM 2012 to a Server 2008 R2 that client could not reply back to SCCM (no heartbeat) so not showing up with any activity in Asset and Compliance view.

The solution was to reinstall WMI on Server 2008 R2 and then push the Configuration client back out.

The code to do this was:

On the Server 2008 R2 with local sys admin rights:

1. Log on with the built-in Administrator account (or another Administrator account)

– Find the ccmsetup.exe in the client, it is usually in the folder %windir%\system32\ccmsetup
– Open a cmd, and go to the ccmsetup folder.
– Type ccmsetup.exe /uninstall in the cmd.

3. Re-register all WMI modules with the following commands (can be executed as a batch file or individually from the command prompt):

@echo off
sc config winmgmt start= disabled
net stop winmgmt /y
cd %windir%\system32\wbem
for /f %%s in (‘dir /b *.dll’) do regsvr32 /s %%s
wmiprvse /regserver
winmgmt /regserver
net start winmgmt

4. Recompile all MOF and MFL files by running the following command in the %windir%\system32\wbem directory:

for /f %s in (‘dir /b *.mof *.mfl’) do mofcomp %s

5. Reinstall the client (push from SCCM) and test again.

No Comments Yet.

Leave a Comment