Run Scripts - CCM Cache Report

This Script will grab information about the items in your CCM Cache. What this script does

  • Sets Cache Size to 25GB if not 25GB (Feel free to modify)
  • Deletes Duplicate Content, leaving only the latest version of that content
  • Reports Software Updates (Count)
    • Software Update Name
    • Software Update Status (Missing / Installed)
    • Software Update Cache Location
    • Software Size in Cache
  • Reports Packages (Count)
    • Package Name
    • Package ID
    • Package Cache Location
    • Package Size in Cache
  • Reports Applications (Count)
    • App Deployment Type Name
    • App Cache Location
    • App Size in Cache

Please note, very little testing, I've found that not all software updates in the CCMCache have directly related info in WMI, so not all of them populate (See Detailed Dump below).
Basically, the script runs through the CCM Cache, then TRIES to find corresponding information in WMI for the Content ID... which was a bit tricky to find. It took me forever (like an hour) to figure out how to pull in the Application Names, that info was really hidden good in WMI.

You can deploy to one PC or many. You can then look at the detailed output per machine to see more info.

Dump of Details for a machine: (Not the script, just the detailed output of running on a machine).

Screen Shot of the Code in ISE:

This script is only reporting, I have others for deleting specific content, or all software updates for example, just search my blog for ccmcache. For a Nifty Pro-Active way to manage your cache, look here: .
We at #BigBank also use a baseline to manage our difference caches, maybe someday @MikeTerrill will blog that.


2 thoughts on “Run Scripts - CCM Cache Report”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.