wbracken
Posts: 1006
Score: 22 Joined: 4/12/2002 From: St. Louis Status: offline
|
Here's a script I used when I rebuilt the SMS 2003 infrastructure here. Not tested against SCCM but worth a try: *note the optinal CacheSize routine...you can leave that part out.
' =============================================================================
' /// Info
' =============================================================================
' USAGE: SMS CLIENT Redirect
' ScriptVersion = "1.0"
' =============================================================================
On Error Resume Next
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shell")
Computer = WSHShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
' =============================================================================
'/// Prevent script from running on Current SMS Server (stl)
' =============================================================================
If Computer = "MYOLDSMSSERVER" Then
WScript.Quit
End if
' =============================================================================
' /// Set SMS SITE CODE to 001
' =============================================================================
Set smsClient = CreateObject("Microsoft.SMS.Client")
smsClient.SetAssignedSite "001", 0
Set smsClient = Nothing
' =============================================================================
' /// Set Cache to 2048
' =============================================================================
Dim oUIResManager
Dim oCache, CacheSize
CacheSize = 2048
Set oUIResManager = CreateObject("UIResource.UIResourceMgr")
If oUIResManager Is Nothing Then
WScript.Quit
End If
Set oCache=oUIResManager.GetCacheInfo
If oCache Is Nothing Then
Set oUIResManager=Nothing
WScript.Quit
End If
oCache.TotalSize=CacheSize
WScript.Quit
_____________________________
William Bracken http://www.clientarchitect.com
|