Remove unit from calendar group
Description
Section titled “Description”Removes a unit from a calendar group.
Syntax
Section titled “Syntax”RemoveUnitFromCalendarGroup(Byval UnitName as String, Byval UnitType As String, Byval CalendarGroupName as String) as Boolean
Parameters
Section titled “Parameters”UnitName (String)
The name or UUID of the unit.
UnitType (String)
Type of Unit
- “Computer”
- “User”
CalendarGroupName (String)
The name of the calendar group
Return value
Section titled “Return value”Boolean. The function returns True if successful, otherwise false.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.RemoveUnitFromCalendarGroup("Klient", "Computer", "Weekly")