Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Advanced Client Download Cache ReSize

Status
Not open for further replies.

Karactur

Technical User
Jul 31, 2003
60
CA
I need a way to resize the Client Download Cache AFTER the client has been installed. I know I can do it through the GUI, but would like to know if I can do it remotely, or through an advertised program.

I have seen hints that you can set something up in the Management console, but nothing definite.

Thanks for any help.
 
Hi there,
You might want to have a look at the SDK for SMS 2003. There is an interface called "UIResourceMgr" whith which you can manipulate the cache.

Cheers,
Chris
 
Thanks for the reply Chris,
I am very weak when it comes to develpoer tools, and scripting. Although, it's something I NEED to improve on, I can't grasp at this time the finer point of the scripts from the SDK. I looked them over, and read the individual info, but can't work it out.

Is there a way to clarify or submit an example of the utils and how they are used?

- Still Learning.
 
VBScript you couls push out..

On Error Resume Next

Dim nValueToCheck
Dim nValueToSet

Dim oUIResource
Dim oCache

Set oUIResource = CreateObject("UIResource.UIResourceMgr")
Set objCacheInfo = oUIResource.GetCacheInfo

nValueToCheck = 250
nValueToSet = 1250

' Set the cache size if it's less than or equal to 250
if objCacheInfo.TotalSize <= nValueToCheck then
objCacheInfo.TotalSize = nValueToSet
end if

Just make the nValueToSet what ever size you want.
 
OOPPSss,
Thanks TBrennans for the script!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top