SCCM 2012 Cache & Persistent Cache - Delete System Wide

Hi All,

Our user computers are running out space and we narrowed it down to the CCM cache folder in windows that is taking up the space. Is there a script that we can run system wide to delete and clean up the space, both cache and persistent. I looked over the internet and tried a couple but nothing works. Thanks in advance for you help
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

venkatspbSenior Software EngineerCommented:
The Default cache size is 5120(MB)/5GB. Try decreasing the size of the cache. As you have already tried the would not be a correct solution.

Actually I had the same kind of problem. I read in some blog, once the Cache size limit is reached the old files or folders will be deleted automatically.
Mike TLeading EngineerCommented:

The answer is PowerShell. There are many ways to achieve this. I've used a two liner (but don't have it to hand) which works fine. However, I like Compliance settings so I'm going to go for this:

Not only will it change the size, it will give you a lovely pie chart of how many have the right cache size.

Also, if it's too big to start with that suggests your build sets it too large in the first place. When you install the CM client the default size is 5GB. You can change that with the property SCCMCacheSize=2000 (or whatever you like). Note don't make it too small or you won't be able to install some software. e.g. We have AutoCAD on site and the cache needs to be at least 10GB just to be able to install it.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.