Skip to content

Delete group

Deletes a CapaInstaller group.

DeleteGroup(Byval GroupName as String, Byval GroupType as String, Byval UnitType as String) as Boolean

GroupName (String)

The name of the group

GroupType (String)

The type of the group. Valid values are “Dynamic_ADSI”, “Calendar”, “Department”, “Dynamic_SQL”, “Reinstall”, “Security” and “Static”

UnitType (String)

The type of the elements in the group. This can be either “Computer” or “User”

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

VBScript

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