At some point you’ll probably have a large package you need to deploy, larger than the default cache or the one you specified in your client installation properties. By default, unless you’ve specified otherwise, the default client cache size for System Center Configuration Manager Client in 2012 is 5GB. Before we begin you should already have a basic understanding of how to create Packages, Programs, and how to create Deployments.
There are many ways to remotely change the SCCM client cache size but my favorite is the create an SCCM Package that utilizes VB Script! Let’s have a look at the VB Script we’ll be using:
On Error Resume Next
Set UIResManager = createobject("UIResource.UIResourceMgr")
The part we really care about is the
Set CacheSize=10000. This will set the cache size to 10,000MB or 10GB or any value we supply. So let’s copy that text into a .VBS file and save it to our content location. I actually have a few copies of the script in the content location, each script is the same except the CacheSize value. This way I have multiple options for cache sizes as seen below.
We’ll be creating a New Package not a Package from Definition. We’ll need to fill out any required information and any extra information we care to provide. We’ll want to make sure we check the box “This package contains source files” and then browse to location of the script(s) we’ve created. Now click Next.
Next select Standard Program
For our package information we’ll need to specify at least a Name and Command Line. Under Command Line you should type the name of your VBS script, in my case I’ve just called it 10GB.vbs. (NOTE: We could also browse for the VBS files but by default the browse window will only show .exe files. You’ll need to change the file type drop down to All Files to see the VBS scripts). We’ll also want to make sure the program Runs: Hidden and the Program can run: Whether or not user is logged on.
Here we can specify any requirements if we so chose and then click Summary.
We now have our Package with our first program to change the SCCM Client Cache size. But what about the scripts for other cache sizes? Not a problem! We’ll need to right click the package and select Create Program.
This will open the New Program wizard we just walked through. Now we can just repeat the last steps but instead of using the 10GB.vbs file, we specify the 15GB.vbs file or any other VBS file in the content location. We’ll need to Distribute Content of the package so that clients have access to the scripts. Once we do that we can select the Package, select the Program tab, right click a program and deploy it to a collection.