Get Unit Management Point
Description
Section titled “Description”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.
Syntax
Section titled “Syntax”GetUnitManagementPoint(ByVal unitName As String, ByVal unitType As String) As String
Parameters
Section titled “Parameters”UnitName (String)
The name or UUID of the unit.
UnitType (String)
Type of Unit
- “Computer”
- “User”
Return value
Section titled “Return value”String. The function returns the ID of the Management Point.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.GetUnitManagementPoint("Klient","Computer")