Exist Unit On Management Point
Description
Section titled “Description”Checks whether a unit is linked to the specified Management Point.
Syntax
Section titled “Syntax”ExistUnitOnManagementPoint(ByVal unitName As String, ByVal unitType As String, CMPID As Integer) As Boolean
Parameters
Section titled “Parameters”UnitName (String)
The name or UUID of the unit.
UnitType (String)
Type of Unit
- “Computer”
- “User”
CMPID (Integer)
The ID of the Management Point
Return value
Section titled “Return value”Boolean. The function returns True if the unit is linked to the Management Point. It returns False if the unit is linked to another Management Point, or if the unit isn’t found.
When you look up the unit by name, the function only finds units on the Management Point that you selected with Set instance management point. To check a unit on another Management Point, use its UUID.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.ExistUnitOnManagementPoint("Klient","Computer","1")