This VBS script will install the ConfigMgr 2007 client on a local machine and assign it to a specified Site Code.
Note: To automatically assign the client change the strCommand line section:" SmsSiteCode=" & strSiteCode to: " SmsSiteCode=Auto". Otherwise the script will assign the client to the site code specified in the Enter Site Code dialog box.
Tip: You can also use this script as part of your logon script repository to install the ConfigMgr 2007 client on machine by hard coding the input box variables and removing the Message box..
VBS Script:
strSiteServer = InputBox ("Enter SMS Server Name")
strSiteCode = InputBox ("Enter Site Code")
strCommand = "\\" & strSiteServer & "\SMS_" & strSiteCode & "\Client\CcmSetup.exe /mp:" & strSiteServer & " SmsSiteCode=" & strSiteCode
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.Run(strCommand)
MsgBox "Process Initiated"
Here you will find a Vbs script to use to install the ConfigMgr 2007 client on a machine via a System