Delete group
Description
Section titled “Description”Deletes a CapaInstaller group on the instance Management Point. The Windows user who runs the script must have administrator rights for groups on the Management Point.
Syntax
Section titled “Syntax”DeleteGroup(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 “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”. The value isn’t used to find the group, but you must specify it.
Return value
Section titled “Return value”Boolean. Returns true if the group is deleted. The function raises an error if the group isn’t found, or if the user doesn’t have the required rights.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.DeleteGroup("Jylland","Static","Computer")