/
Get unit groups
Get unit groups
Description
Returns a list of groups the specified unit is linked to.
Syntax
GetUnitGroups(Byval UnitName as String, Byval UnitType as String) as ArrayList
Parameters
UnitName (String)
The name of the unit
UnitType (String)
Type of Unit
- "Computer"
- "User"
Return Value
The function returns an array of groups. Each Group (g) in the array is a joined line with the character defined with Set splitter.
- g.Name
- g.Type
- g.unitType.ID
- g.Description
- g.GUID
- g.ID
Example
VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") Set aUnit = CreateObject("System.Collections.ArrayList") wscript.echo oCMS.SetDefaultManagementPoint("1") Set aUnit = oCMS.GetUnitGroups("Klient","Computer") for each item in aUnit wscript.echo item next
, multiple selections available,
Related content
Get unit groups
Get unit groups
More like this
Get unit groups
Get unit groups
More like this
Get group units
Get group units
More like this
Get group units
Get group units
More like this
Get group units
Get group units
More like this
Get group units
Get group units
More like this