Get unit management server relation
Description
Section titled “Description”Returns a unit’s linked management server.
Syntax
Section titled “Syntax”GetUnitManagementServerRelation(Byval UnitName as String, Byval UnitType as String) as String
Parameters
Section titled “Parameters”UnitName (String)
The name of the unit
UnitType (String)
Type of Unit
- “Computer”
- “User”
Return Value
Section titled “Return Value”String containing the path to the server
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetDefaultManagementPoint("1")wscript.echo oCMS.GetUnitManagementServerRelation("client","Computer")