Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»Script to Change SCCM Configmgr Client Cache Size

    Script to Change SCCM Configmgr Client Cache Size

    Eswar KonetiBy Eswar KonetiJuly 17, 3:53 pm2 Mins Read CM2012 8,245 Views
    Share
    Facebook Twitter LinkedIn Reddit

    My Previous Blog post talks about How to know Client Cache folder size in your Environment using Custom MOF.What is you are deploying Larger packages or Your Cache size is full with applications and software updates ?

    By Default,Configuration Manager Client stores the Deployed packages (could be applications,Packages,Software updates etc) in C:\windows\SysWOW64\CCM\Cache (CM07) and C:\Windows\ccmcache(CM12).

    The Size of the Cache folder can be specified while installing SCCM Client using parameter SMSCACHESIZE .If you do not set this property while installing SCCM Client, the folder defaults to a maximum size of 5120 MB. The lowest value you can specify is 1 MB.

    For More information how Client Cache Works,Read TechNet Article

    Note From TechNet Article:If you reinstall a client, you cannot use the SMSCACHESIZE installation properties to set the cache size to be smaller than it was previously. If you try to do this, your value is ignored and the cache size is automatically set to the last size it was previously.

    What happens when the Specified Cache limit size is full or no space to download the BIG Packages since there is no auto mechanism to delete the content ?

    Two Options you have: 1) Either Delete the content which was not used since X days or Delete all the Content.

    I have blogged about how to delete the Software Updates from the Cache folder http://eskonr.com/2012/05/vb-script-to-delete-software-update-files-from-sccm-client-cache-folder/

    2) Increase the Cache Size Limit ,Blog talks about this Option.

    Create Notepad File and save it as Filename.vbs

    On Error Resume Next

    Dim UIResManager
    Dim Cache
    Dim CacheSize

    CacheSize=10240

    Set UIResManager = createobject ("UIResource.UIResourceMgr")

    Set Cache=UIResManager.GetCacheInfo()

    Cache.TotalSize=CacheSize

    Note:Replace the double quotes(“) as blog converts them fancy.

    To Increase size of Cache folder on Bulk Machines,You can advertise this as a package onto Collection.

    You can also Achieve this using powershell script http://www.david-obrien.net/2013/02/07/how-to-configure-the-configmgr-client/

    Hope It helps!

    Change Size Cache Folder client cache CM12 configuration Manager PowerShell Script.Delete Cache folder Content SCCM SMSCACHESIZE VB Script
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Optimize Your Intune Workflow with a Powerful Browser Extension

    March 22, 10:39 am

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    5 Comments

    1. David on May 23, 2017 4:36 AM

      Eswar
      Will changing the default client settings client cache size, update the cache if modified? Or is this only for new installations?

      Reply
      • Eswar Koneti on June 6, 2017 9:44 PM

        Hi,
        When you change the client settings ,SCCM will generate a policy and this will be applied during the next policy evaluation on clients and accordingly ,this cache size change will happen.
        So it will be applied on existing and new clients as well.

        Regards,
        ESwar

        Reply
    2. daya on August 31, 2013 8:24 AM

      Hi Eswar,
      Thanks for sharing this info.This is going to help me in my environment.I need to increase cache size of some machines as we need to deploy an application having size of more than 10 gb on some specific machine.

      Reply
      • Eswar Koneti on September 16, 2013 7:54 AM

        Thanks.

        Reply
    3. Hiren Jani on July 17, 2013 4:04 PM

      Great.. I was stuck in this situation after June 2013's updates.

      Reply

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.