Get groups
Description
Section titled “Description”Returns groups of specified type
Syntax
Section titled “Syntax”GetGroups(Optional Byval Type as String = "") as ArrayList
Parameters
Section titled “Parameters”Type (String)
The type of group to retrieve.
- “Dynamic_ADSI”
- “Calendar”
- “Department”
- “Dynamic_SQL”
- “Reinstall”
- “Security”
- “Static”
The parameter is optional, meaning that it can be left out. This will cause all groups to be returned.
Return value
Section titled “Return value”An arraylist, containing all requested groups are returned. Each element in the array is a joined line with the character defined with Set splitter.
Each joined line (j) consists of these variables;
- j.Name
- j.Type
- j.unitType.ID
- j.Description
- j.GUID
- j.ID
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Set aUnit = CreateObject("System.Collections.ArrayList")wscript.echo oCMS.SetDefaultManagementPoint("1")Set aUnit = oCMS.GetGroups()for each item in aUnit wscript.echo itemnext