Skip to content

Add unit to calendar group

Adds the unit to the calendar group.

AddUnitToCalendarGroup(Byval Unitname as String, Byval UnitType as String, Byval CalendarGroupName as String) as Boolean

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

CalendarGroupName (String)

Calendar group name

 Boolean. The function returns True if successful, otherwise false.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.AddUnitToCalendarGroup("Klient","Computer","Weekly")