Clear SCCM 2012 Client Cache

One of my servers failed to install a few updates. I found that the disk had filled up. I deleted files out of c:\windows\temp, and I also deleted files out of c:\windows\ccm\ccmcache. This probably caused my current problem. Now when I retry the updates, it starts to download and immediately fails. CAS.log file says:

Requesting content f4673831-5555-474f-9eb0-9ac53fa09044.1, size(KB) 0, under context System with priority Foreground

Saved Content ID Mapping f4673831-5555-474f-9eb0-9ac53fa09044.1, C:\Windows\ccmcache\30

Content for f4673831-5555-474f-9eb0-9ac53fa09044.1 was found in cache

Cache is in Use. DeleteCacheItem cannot proceed.

No content source for given handle found

I checked the ccmcache folder, and it is empty. On google, I found a vbs script to force clearing this cache. I downloaded, and ran as administrator. It said success, but in the CAS.log it says:

CacheManager.DeleteCacheItem failed with 0x87d01203

Cache is in Use. DeleteCacheItem cannot proceed.

June 5th, 2015 8:39am

Hello,

The cache (to my knowledge) is registered in two places:

  • The registry: HKLM\SOFTWARE\Microsoft\SMS\Mobile Client\Software Distribution
  • The WMI: ROOT\ccm\SoftMgmtAgent\CacheInfoEx

I am not 100% sure, as I have never had the chance to test it myself, but I believe that the registry is the "master".

So, I would locate your package in the registry, delete the value (or possibly rename it) and then see what happens.

If it still fails, I would attempt to remove it from the WMI as

Free Windows Admin Tool Kit Click here and download it now
June 5th, 2015 9:21am

Deleted the registry keys, and re-ran. Took a little longer to fail (sat at downloading for a bit), but still failed. Logs look the same, and the referenced folder is the same. It appears that folder is just numbered sequentially, so since it is the same I am going to assume WMI took precedence.

Any advice on the best way to delete the WMI instances? I see them in WMI Explorer, but not sure how I should safely delete them.

thanks

June 5th, 2015 10:12am

If it's just one server what happens if you delete the cache from the control panel applet gui?

http://www.techygeekshome.co.uk/2012/12/clearing-configmgr-client-local-cache.html

Free Windows Admin Tool Kit Click here and download it now
June 5th, 2015 10:36am

If it's just one server what happens if you delete the cache from the control panel applet gui?

http://www.techygeekshome.co.uk/2012/12/clearing-configmgr-client-local-cache.html

Said the cache was in use and could not be deleted.
June 5th, 2015 10:46am

Hello,

The cache (to my knowledge) is registered in two places:

  • The registry: HKLM\SOFTWARE\Microsoft\SMS\Mobile Client\Software Distribution
  • The WMI: ROOT\ccm\SoftMgmtAgent\CacheInfoEx

I am not 100% sure, as I have never had the chance to test it myself, but I believe that the registry is the "master".

So, I would locate your package in the registry, delete the value (or possibly rename it) and then see what happens.

If it still fails, I would attempt to remove it from the WMI as

Free Windows Admin Tool Kit Click here and download it now
June 5th, 2015 10:47am

You should never delete anything like this directly. The CacheInfoEx COM class (referenced in the PowerShell snippet above) is the proper way to clear the cache programmatically. Alternatively, you can simply go into the ConfigMgr Control Panel applet and push the button on the Cache page that says Delete Files...
June 5th, 2015 10:57am

You should never delete anything like this directly. The CacheInfoEx COM class (referenced in the PowerShell snippet above) is the proper way to clear the cache programmatically. Alternatively, you can simply go into the ConfigMgr Control Panel applet and push the button on the Cache page that says Delet
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2015 10:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics