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
[email protected]<mailto:[email protected]>