{"id":22,"date":"2013-07-25T16:18:17","date_gmt":"2013-07-25T16:18:17","guid":{"rendered":"http:\/\/www.stevenhodson.com\/?p=22"},"modified":"2017-09-10T03:00:17","modified_gmt":"2017-09-10T02:00:17","slug":"increasing-the-size-of-the-sccm-client-cache-during-operating-system-deployment","status":"publish","type":"post","link":"https:\/\/www.stevenhodson.com\/?p=22","title":{"rendered":"Increasing the size of the SCCM Client Cache during Operating System Deployment"},"content":{"rendered":"<p>Sometimes, when you have large applications to deploy during an Operating System Deployment task sequence, it will fail because the size of the SCCM Client Cache is not big enough to cache the application installation files. By default, the SCCM Client Cache is set to 5120MB unless you specify a different value when installing the client using the SMSCACHESIZE property.<\/p>\n<p>You can change the size of the SCCM client cache during a deployment by using a script. I usually implement this as a \u201cRun Command Line\u201d task sequence step which I run immediately before the application installation task sequence steps.<\/p>\n<p>Here is the script, together with details of how to configure it:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/><\/div><\/td><td><div class=\"text codecolorer\">strCacheSize = 10240<br \/>\nSet oUIResource = CreateObject(&quot;UIResource.UIResourceMgr&quot;)<br \/>\nSet cacheinfo = oUIResource.GetCacheInfo<br \/>\ncacheinfo.TotalSize = strCacheSize<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>1. Save the above script as smscachesize.vbs and amend the strCacheSize value as appropriate.<br \/>\n2. Place the script in a directory that can be used as a package source folder.<br \/>\n3. Create a package without a program and use the directory created above as the source folder.<br \/>\n4. Distribute the package to the appropriate distribution points.<br \/>\n5. In the task sequence, after the \u201cSetup Windows and Configuration Manager\u201d step, but before the steps that will install the applications, add a \u201cRun Command Line\u201d step.<br \/>\n6. Configure the \u201cRun Command Line\u201d step to execute the script using the following command line: \u201ccscript.exe smscachesize.vbs\u201d, and reference the package you created above.<br \/>\n7. Perform a test deployment before making the changes to your live deployment task sequence.<\/p>\n<p>If you wish, you can of course add another step after the applications have been installed to set the cache back to the default value of 5120MB.<\/p>\n<p>I\u2019ve only ever used this script with System Center 2012 Configuration Manager, but it should also work with Configuration Manager 2007.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, when you have large applications to deploy during an Operating System Deployment task sequence, it will fail because the size of the SCCM Client Cache is not big enough to cache the application installation files. By default, the SCCM Client Cache is set to 5120MB unless you specify a different value when installing the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-configuration-manager","category-operating-system-deployment"],"_links":{"self":[{"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22"}],"version-history":[{"count":1,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions\/63"}],"wp:attachment":[{"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stevenhodson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}