Skip to content

Delete Group in Business Unit

Deletes a CapaInstaller group in a Business Unit.

DeleteGroupInBusinessUnit(ByVal groupName As String, ByVal groupType As String, ByVal unitType As String, ByVal businessUnit As String) As Boolean

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

Boolean. Returns true if the group is deleted, otherwise false

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.DeleteGroupInBusinessUnit("Jylland","Static","Computer","Denmark")