Create group
Description
Section titled “Description”Creates a CapaInstaller group on the instance Management Point. To create a group in a Business Unit, use Create group in Business Unit. To create an AD group, use Create AD group.
Syntax
Section titled “Syntax”CreateGroup(Byval GroupName as String, Byval GroupType as String, Byval UnitType as String) as Boolean
Parameters
Section titled “Parameters”GroupName (String)
The name of the group
GroupType (String)
The type of the group. Valid values are “Calendar”, “Department” and “Static”
UnitType (String)
The type of the elements in the group. This can be either “Computer” or “User”
Return value
Section titled “Return value”Boolean. Returns true if the group is created. If a group with the same name and type already exists on the Management Point, the function raises an error.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.CreateGroup("Jylland","Static","Computer")