VBS Script To Install The Configuration Manager 2007 Client On A Local Machine

 

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"

 

Published Sunday, October 21, 2007 2:26 PM by dhite
Filed under:

Comments

# VBS Script To Install the ConfigMgr 2007 Client Via A System Startup Group Policy Or A Logon Script

Here you will find a Vbs script to use to install the ConfigMgr 2007 client on a machine via a System

Sunday, December 30, 2007 2:58 PM by Don Hite