SCCM Client Cache Size

In a previous post we had talked about How to clear the SCCM client cache with MPA Tools , however, there may be times where there is not enough cache space even after clearing it. In these instances, we may need to increase the cache size.

SCCM Client Cache Size

In a previous post we had talked about How to clear the SCCM client cache with MPA Tools, however, there may be times where there is not enough cache space even after clearing it. In these instances, we may need to increase the cache size.

In this post, we will look at what the SCCM client cache is, why we would ever need to increase it, and how to increase its size using MPA Tools.

What is the SCCM client cache folder?

Just as a quick recap… the client cache stores temporary files for when the SCCM client install applications, programs and software updates. The default location for the Configuration Manager client cache is %windir%\ccmcache and the default disk space is 5120 MB, unless otherwise configured in the SCCM client settings.

When will the SCCM client cache size need to be increased?

The SCCM client cache size may be insufficient in the following scenarios:

  • A deployed package/program or application content is larger than the client's cache size.
  • There is package/program or application content that is persistent in the client cache consuming most of the client's cache, leaving little or no space for additional content.
  • The content associated with an OSD task sequence deployed to an SCCM client is larger than the client's cache size.
  • The content associated with all packages/programs and/or applications, that are deployed to a newly imaged or provisioned system, is larger than the client's cache size.
  • The content associated with all packages/programs and/or applications that are deployed to a collection, that a system is a new member of, is larger than the client's cache size.

In these scenarios, a similar error to the following will appear in the CAS.log file in the C:\Windows\CCM\Logs folder.

SCCM Client Cache Size screenshot 1

If the deployment is configured as “available", then the following error will appear in Software Center when trying to install the software.

SCCM Client Cache Size screenshot 2

For a more detailed explanation on how the SCCM client cache works, you may want to read the following Microsoft Learn article https://learn.microsoft.com/en-us/mem/configmgr/core/clients/manage/configure-client-cache#about

Increase the client cache size with MPA Tools for a single computer

In MPA Tools, select a single client and then click the SCCM client button from the vertical toolbar on the right.

SCCM Client Cache Size screenshot 3

On the right-hand menu, we can see that that there is 15 GB of 15 GB free, indicating the current client cache size. Click the Change client Cache Size button at the bottom.

SCCM Client Cache Size screenshot 4

Enter the cache size in MB and then click the Change button.

SCCM Client Cache Size screenshot 5

After which, the action status for client cache size change appears.

SCCM Client Cache Size screenshot 6

During this change the SMS Agent Host service (ccmexec) has to be restarted for the change to take affect (as shown below).

SCCM Client Cache Size screenshot 7

If we click on the >> button we can see that the action was a success under the action status.

SCCM Client Cache Size screenshot 8

Now we can see that that there is 20 GB of 20 GB free, indicating that the new client cache size has taken affect.

SCCM Client Cache Size screenshot 9

If we have a look at the cache settings on the client, we can confirm that the cache size is now 20GB.

SCCM Client Cache Size screenshot 10

Note: The SCCM client cache size can only be manually changed like this if the cache size is not managed in the default client settings and/or any other applicable client settings assigned to a system (as shown below). See the section Is the client cache size reverting? below for the explanation.

SCCM Client Cache Size screenshot 11

Increase the client cache size with MPA Tools for multiple computers

In MPA Tools, select multiple computers and then click the Actions button.

SCCM Client Cache Size screenshot 12

Select SCCM Client Properties from the middle menu. Scroll down to Client Tools and expand the options. Click the lock button to unlock the options, then select the Change Client Cache Size radio button. Then click the Run Now button.

SCCM Client Cache Size screenshot 13

The action status will now appear.

SCCM Client Cache Size screenshot 14

Once the action is complete for each system, we can click on the log button to see the action log and the resulting action status.

SCCM Client Cache Size screenshot 15

If we click on each action log, we can see that the action status is a success.

SCCM Client Cache Size screenshot 16

How to set the default cache size

There are two ways to set the default SCCM client cache size, namely:

SCCM Client Cache Size screenshot 17

Is the client cache size reverting?

If the client cache size is defined in either the default client settings in SCCM (as shown above) or in a custom client setting assigned to a collection that the system is a member of, then the client cache size cannot be changed. And we will explain why…

In order for the client cache size change to take affect, the SMS Agent Host service (ccmexec) has to be restarted. At which point, the client will reevaluate its machine policies and it will pick up the client cache size setting defined in the relevant client setting, and thus overwrite the manual client cache size change. Therefore, any cache size setting defined in the applicable client setting will take precedence over a manual client cache size change.

Written by