Just created one.let me know if you need more info.

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Murray, Mike
Sent: Monday, July 14, 2014 4:19 PM
To: [email protected]
Subject: [mssms] RE: Change client cache size and location via VBScript

 

Do you have an example you could share?

 

Thanks!

 

Mike

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of JONES, RICK J
Sent: Thursday, July 10, 2014 4:56 PM
To: [email protected] <mailto:[email protected]> 
Subject: [mssms] RE: Change client cache size and location via VBScript

 

The client will not allow that because your trying to run the script from
within the cache.

 

What you will have to do is a layered process where a batch file copies some
files to a folder outside of the sccm cache and then activates that process
in the folder outside of the cache and leave it running and then end the
main script.

 

Your activated script then needs to wait (I usually do about 5 minutes) to
let the SCCM Client complete its processes before it will allow
modifications of the cache location.

 

Rick J. Jones 
Wireless from AT&T
Domestic Desktop Application Management
(206) 419-1104 

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Murray, Mike
Sent: Thursday, July 10, 2014 4:38 PM
To: [email protected] <mailto:[email protected]> 
Subject: [mssms] Change client cache size and location via VBScript

 

Hey folks,

 

I have a handful of computers that we need to increase the cache size and
move the cache folder to another drive. I'm using the script below. If I run
it directly on a computer, it works fine. However, when I deploy it as an
application, it doesn't seem to fully work. In one case, only the cache size
got changed. In another, nothing got changed.

 

The command line I'm using in the app is CSCRIPT.EXE "ChangeCache.vbs".
Also, it's set to install for system, whether or not a user is logged in.

 

On Error Resume Next

 

Dim UIResManager 

Dim Cache 

Dim CacheSize

Dim CacheLocation

 

CacheSize=20480

CacheLocation="T:\"

 

Set UIResManager = CreateObject("UIResource.UIResourceMgr")

 

Set Cache=UIResManager.GetCacheInfo()

 

Cache.TotalSize=CacheSize

Cache.Location=CacheLocation

 

 

 

Best Regards,

 

Mike Murray

Desktop Management Coordinator - IT Support Services

California State University, Chico

530.898.4357
 <mailto:[email protected]> [email protected]

 

 

 

 



Reply via email to