Skip to content

Get Unit Management Point

Gets the ID of the Management Point that the unit is linked to.

You don’t need to call Set instance management point before you use this function. If you do, the function only finds units by name on that Management Point. To find a unit on any Management Point, use its UUID, or don’t set an instance Management Point.

GetUnitManagementPoint(ByVal unitName As String, ByVal unitType As String) As String

UnitName (String)

The name or UUID of the unit.

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

String. The function returns the ID of the Management Point.

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.GetUnitManagementPoint("Klient","Computer")