Skip to content

Get unit management server relation

Returns a unit’s linked management server.

GetUnitManagementServerRelation(Byval UnitName as String, Byval UnitType as String) as String

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

String containing the path to the server

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.GetUnitManagementServerRelation("client","Computer")