Increase CM cache and clean it – 2


Next version to http://blogs.msdn.com/b/alex_semi/archive/2011/12/15/increase-cm-cache-and-clean-it.aspx

Now the script goes to WMI, and checks, if each cached package required by any of mandatory assignment, and if it’s in a future, or recurring, it won’t delete.

CCMCacheClean.zip


Comments (2)

  1. Tom Collins says:

    Can this script be ran from a SCCM OSD task sequence using the "Run another program first" option?  I keep getting errors that it can't delete the object, but it works if run manually.  Does running the script from within an advert lock the entire CM cache and therefore prevent files from being deleted?

  2. Alex Semi says:

    From what I know, Run another program first does not work in Install Software step in TS