Setting cache size on advanced clients.
Do you want to change the sms/sccm client cache size setting in your environment you can do this with a script. I will show you 2 examples of doing it.
If you would like to deploy it via SMS/SCCM with different sizes you can use the script below. Save it as a ex. setclientcachesize.vbs script and create a folder in our package area and create different programs for it.
On Error Resume Next
Set oUIResource = CreateObject(“UIResource.UIResourceMgr”)
Set objCacheInfo = oUIResource.GetCacheInfo
nValueToSet = wscript.arguments(0)
objCacheInfo.TotalSize = nValueToSet
Program values would for an example be like this. (Examples show the preferred size of the client cache in MB.)
setclientcachesize.vbs 1000
setclientcachesize.vbs 2500
setclientcachesize.vbs 5000
If you would like to set your client cache size to a static value a script like this would to it. Save the code and save it as a .vbs script, and deploy in preferred way. To change the size change the value 3000 to preffered value in MB.
On Error Resume Next
Set oUIResource = CreateObject(“UIResource.UIResourceMgr”)
Set objCacheInfo = oUIResource.GetCacheInfo
nValueToSet = 3000
objCacheInfo.TotalSize = nValueToSet