Clear Application Content from SCCM Client Cache

Starting with SCCM 1906 you can delete or clear the application content from the SCCM client cache. In the Install Application task sequence step, you get the option to delete or clear Application content from cache after installing.

I find this option useful when the devices have got small hard drives or when installing lots of large apps in succession.

So what is client cache folder (ccmcache) – In simple terms the client cache is a temporary download location for software, applications and updates deployed to a client. The client cache is located in %windir%\ccmcache.

By default the cache size is 5120 MB which can increased. To increase the client cache size, you can use VBScript, PowerShell or even deploy a package and modify the cache size.

When you deploy multiple large apps to a client, before installing, the client attempts to download content first. If the size of content is greater than the size of the cache, the deployment will fail due to insufficient cache size. In such cases the CAS.log shows “Not enough space in cache”. I am sure we have dealt with this issue and we manually increased the ccmcache folder size to fix this.

Until now there was no way to clear app content from client cache during task sequence. But with SCCM 1906, you should the find the option in task sequence.

Upon some research I found that this feature was requested by a user. The idea was marked as Completed with a note that 1906 release contains a task sequence step to clear the application content from cache.

Clear app content from client cache during task sequence

How to Clear Application Content from SCCM Client Cache

The procedure to delete or clear application content from SCCM client cache is.

  • Launch the SCCM console.
  • Navigate to Software Library > Operating Systems > Task Sequences.
  • You can either create a new Task Sequence or Edit an existing Task Sequence.
  • In the Task Sequence editor, click Add > Software > Install Application.
  • Select the applications that you want to deploy to client computer.
  • At the bottom, check the box “Clear Application Content from cache after installing“.
Clear Application Content from cache after installing
Clear Application Content from cache after installing

Create Task Sequence

To test this feature, let’s create a new task sequence that deploys multiple apps. Furthermore we will enable the clear application content from cache after installing.

Navigate to Software Library > Operating Systems > Task Sequences. Right click Task Sequences and click Create Task Sequence.

Create a new SCCM task sequence

Select Create a new custom task sequence. Click Next.

custom task sequence

Specify Task sequence name and click Next.

Task Sequence Name

Click Next on the summary page.

Task Sequence Summary

Finally on the Completion window, click Close.

Task Sequence completion

Right click the task sequence that you just created and click Edit. Click Add and then click New Group. You can name it as Install Applications. Now click Add > Software > Install Application.

Click the Yellow icon and select the apps that you wish to deploy to client computers.

At the bottom check these options and click OK.

  • If an application installation fails, continue installing other applications in the list.
  • Clear application content from cache after installing.

Clear Application Content from SCCM Client Cache

Deploy the task sequence as Available to a device collection.

On the client computer, launch Software Center and click Applications. Select the task sequence and click Install.

The app installation begins and you can see an installation progress window. At this point open AppEnforce.log file on the client computer to monitor the application installation. The applications will be installed one after the other.

Test the application install sccm client cache

Here is an interesting thing. The task sequence show the apps are installed. If you open ccmcache folder on the client computer, you won’t see any folders. Since we know that folders are created per app install, in this case we don’t see any.

So the task sequence installed all the applications but also cleared application content from cache after installing. Try this feature in your setup and share your experience in the comments section.

Clear Application Content from SCCM Client cache after installing

You might also like

3
Leave a Reply

avatar
2 Comment threads
1 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
newest oldest most voted
Sam Banford
Guest
Sam Banford

Request for clarification, is this clearing the entire cache or just clearing what was deployed as a part of this TS action? As someone who employs BranchCache-enable SCCM clients I’m not looking to vigorously keep those caches empty. Left wondering why this was implemented this way without adding a general client-action accessible via the devices…

Tahu King
Guest
Tahu King

Excellent content as always 🙂

I was wondering if this method will only action after installing an application. Aside from using other methods (scripting / compliance setting) is there an inbuilt process which can be used to periodically go through and clear client caches?