Published : April 11, 2005
This script demonstrates how to set the management point for an SMS Advanced Client.
The following parameters are provided to the
SMSClient.SetCurrentManagementPoint method:
-
A string that is the IP address of the desired management point.
-
An integer, 0, indicating that the first parameter is an IP address.
Alternatively, you can supply the computer name. In that case, the first parameter is the computer name and the second parameter is 1, which indicates that the first parameter is the computer name.
On This Page
Example
Compiling the Code
See Also
Example
On Error Resume Next
dim oSMSClient
set oSMSClient = CreateObject ("Microsoft.SMS.Client")
if Err.Number <>0 then
Wscript.echo "Could not create SMS Client Object - quitting"
Wscript.Quit
end if
oSMSClient.SetCurrentManagementPoint "192.168.0.1",1 'set management point to given ip address
Compiling the Code
See Also
Tasks
How to Use the SMS Advanced Client COM Automation Objects
Concepts
The SMS Advanced Client Automation Objects