Create group in Business Unit
Description
Section titled “Description”Creates a CapaInstaller group in a Business Unit on the instance Management Point.
Syntax
Section titled “Syntax”CreateGroupInBusinessUnit(ByVal groupName As String, ByVal groupType As String, ByVal unitType As String, ByVal businessUnit 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”
BusinessUnit(String)
The name of the Business Unit
Return value
Section titled “Return value”Boolean. Returns true if the group is created. The function raises an error if the Business Unit isn’t found, or if a group with the same name and type already exists in the Business Unit.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.CreateGroupInBusinessUnit("Jylland","Static","Computer","Denmark")