+ Post New Thread
Results 1 to 14 of 14
Enterprise Software Thread, SCCM 2012 R2 - Increase Cache Size in Technical; Hi, I'm trying to set our Cache size to 10240 by default when the SCCM client gets pushed to newly ...
  1. #1
    jaminben's Avatar
    Join Date
    Oct 2012
    Location
    Norfolk
    Posts
    301
    Thank Post
    63
    Thanked 27 Times in 26 Posts
    Rep Power
    13

    SCCM 2012 R2 - Increase Cache Size

    Hi,

    I'm trying to set our Cache size to 10240 by default when the SCCM client gets pushed to newly imaged computers but not having any luck.... how are you guys doing it?

    Attached a screenshot of where I'm applying the setting, although I do remember seeing it set elsewhere on some other site.

    Thanks

    Ben
    Attached Images Attached Images

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,054
    Thank Post
    888
    Thanked 1,729 Times in 1,492 Posts
    Blog Entries
    12
    Rep Power
    454
    Ours is SMSCACHESIZE=10240 - So yours looks right. However shouldn't the package be "Configuration Manager Client Package" Not the update package you have?

    - - - Updated - - -

    You can use this script to change the size on existing machines as well if you wanted. Just deploy it as a package.

    Code:
    Set WSHShell = CreateObject("WScript.Shell")
    Set wshNetwork = WScript.CreateObject( "WScript.Network" )
    strComputer = wshNetwork.ComputerName
    intCacheSize = 10240
    Set objWMIService = GetObject("winmgmts://" & strComputer & "/root/ccm/SoftMgmtAgent")
    Set colItems = objWMIService.ExecQuery("Select * from CacheConfig")
    For Each objItem in colItems
      objItem.Size = intCacheSize
      objItem.Put_ 0
      WshShell.Logevent 4, "The SCCM cache size on " & UCase(strComputer) & " located at " & objItem.Location & " will be changed to: " & objItem.Size & " MB"
    Next
      
    Dim objService, colListOfServices
    
    intSleep = 15000
    strService = " 'CCMExec' "
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colListOfServices = objWMIService.ExecQuery ("Select * from Win32_Service Where Name ="& strService & " ")
    For Each objService in colListOfServices
    'strServiceList = strServiceList & vbCr & objService.name
    objService.StopService()
    WSCript.Sleep intSleep
    objService.StartService()
    Next
    'WScript.Echo strServiceList
    WshShell.Logevent 4, "Your "& strService & " service has Started"
    WshShell.Logevent 4, "The SCCM cache size on " & UCase(strComputer) & " has been changed to: " & intCacheSize & " MB"
    WScript.Quit

  3. #3
    jaminben's Avatar
    Join Date
    Oct 2012
    Location
    Norfolk
    Posts
    301
    Thank Post
    63
    Thanked 27 Times in 26 Posts
    Rep Power
    13
    Thanks for the reply... I created the package when we upgraded from SP1 to R2 which I guess is why its named update. It all works apart from setting the cache size but we've never been able to set it.

    What do you have in your client push settings?

    Attached a screenshot of ours.... I've also added in SMSCACHESIZE=10240 but not sure of the correct format.

    Code:
    SMSSITECODE=RHS,SMSCACHESIZE=10240


    or

    Code:
    SMSSITECODE=RHS SMSCACHESIZE=10240
    Attached Images Attached Images

  4. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,054
    Thank Post
    888
    Thanked 1,729 Times in 1,492 Posts
    Blog Entries
    12
    Rep Power
    454
    Why not use the default package?

    For client push my settings are:
    SMSSITECODE=FAL FSP=FP-SCCM-01 SMSCACHESIZE=26214400

    For SCCM TS:
    FSP=FP-SCCM-01 SMSCACHESIZE=26214400


    We don't use client push though as everything added to the domain is via a TS.

  5. #5
    jaminben's Avatar
    Join Date
    Oct 2012
    Location
    Norfolk
    Posts
    301
    Thank Post
    63
    Thanked 27 Times in 26 Posts
    Rep Power
    13
    Ok, Thanks I'll try those settings in our client push. I didn't use the default package IIRC because it was using the older SP1 client and not the updated R2 version.

  6. #6

    Join Date
    Feb 2013
    Location
    South West England
    Posts
    172
    Thank Post
    0
    Thanked 29 Times in 28 Posts
    Rep Power
    31
    I had this issue so ended up created it as a script then just deployed the script as a program. Seems to have worked fine.

  7. #7
    jaminben's Avatar
    Join Date
    Oct 2012
    Location
    Norfolk
    Posts
    301
    Thank Post
    63
    Thanked 27 Times in 26 Posts
    Rep Power
    13
    @FN-GM I'm guessing when you goto your client machine and check on the CacheSize its set to the new value?
    Last edited by jaminben; 6th May 2014 at 11:41 AM.

  8. #8

    Join Date
    Feb 2013
    Location
    South West England
    Posts
    172
    Thank Post
    0
    Thanked 29 Times in 28 Posts
    Rep Power
    31
    Assuming your asking me then yes new value applied. Tried the odd random machine to test.

    I needed to do it for a program - Adobe CS6 I think and that then installed without issue.

  9. Thanks to snagrat from:

    jaminben (6th May 2014)

  10. #9

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,054
    Thank Post
    888
    Thanked 1,729 Times in 1,492 Posts
    Blog Entries
    12
    Rep Power
    454
    Quote Originally Posted by jaminben View Post
    @FN-GM I'm guessing when you goto your client machine and check on the CacheSize its set to the new value?
    By using the script? Yes

  11. #10
    jaminben's Avatar
    Join Date
    Oct 2012
    Location
    Norfolk
    Posts
    301
    Thank Post
    63
    Thanked 27 Times in 26 Posts
    Rep Power
    13
    Quote Originally Posted by snagrat View Post
    Assuming your asking me then yes new value applied. Tried the odd random machine to test.
    I was specifically asking about client push settings but I guess a script will do the samething.

    Quote Originally Posted by snagrat View Post
    I needed to do it for a program - Adobe CS6 I think and that then installed without issue.
    That's exactly what I'm doing it for now.... DAMN Adobe's crappy software.

  12. #11
    jaminben's Avatar
    Join Date
    Oct 2012
    Location
    Norfolk
    Posts
    301
    Thank Post
    63
    Thanked 27 Times in 26 Posts
    Rep Power
    13
    Quote Originally Posted by FN-GM View Post
    By using the script? Yes
    What about not using the script method and setting the properties in the client push or task sequence?

  13. #12


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,058
    Thank Post
    231
    Thanked 2,716 Times in 2,004 Posts
    Rep Power
    794
    Quote Originally Posted by jaminben View Post
    how are you guys doing it?
    A PowerShell script in the task sequence we use to build each PC.

    Code:
    $Cache = Get-WmiObject -Namespace 'ROOT\CCM\SoftMgmtAgent' -Class CacheConfig
    $Cache.Size = '10240'
    $Cache.Put()
    Restart-Service -Name CcmExec
    This one-liner should also work, although I haven't tested it myself.

    Code:
    C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe -Command "(New-Object -COM UIResource.UIResourceMgr).GetCacheInfo().TotalSize = 10240"
    Last edited by Arthur; 6th May 2014 at 11:51 AM.

  14. Thanks to Arthur from:

    jaminben (6th May 2014)

  15. #13

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,054
    Thank Post
    888
    Thanked 1,729 Times in 1,492 Posts
    Blog Entries
    12
    Rep Power
    454
    Quote Originally Posted by jaminben View Post
    What about not using the script method and setting the properties in the client push or task sequence?
    Sorry im with it. Yes that works for me, only use the TS option.

  16. Thanks to FN-GM from:

    jaminben (6th May 2014)

  17. #14
    jaminben's Avatar
    Join Date
    Oct 2012
    Location
    Norfolk
    Posts
    301
    Thank Post
    63
    Thanked 27 Times in 26 Posts
    Rep Power
    13
    Yay... its working.

    Not sure which one made it work (client push or task sequence) as I have both enabled but its working.

    Thanks for everyones help


    EDIT

    Just as a point of reference it was the client push properties that did it for me... attached screenshot.
    Attached Images Attached Images
    Last edited by jaminben; 6th May 2014 at 12:59 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. SCCM 2012 R2 User Policy Cycle
    By free780 in forum Enterprise Software
    Replies: 0
    Last Post: 28th April 2014, 03:11 PM
  2. SCCM 2012 R2
    By leewakelam in forum Windows Server 2012
    Replies: 5
    Last Post: 9th April 2014, 11:20 AM
  3. [SCCM 2012] SCCM 2012 R2 - Clients unable to find TaskSequence
    By Jacks in forum O/S Deployment
    Replies: 4
    Last Post: 13th November 2013, 06:14 PM
  4. Sccm 2012 r2
    By free780 in forum Enterprise Software
    Replies: 1
    Last Post: 28th October 2013, 02:16 PM
  5. Internet Cache Sizes
    By drewp in forum Windows
    Replies: 5
    Last Post: 26th January 2008, 12:44 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •