CMS_AddComputerToCalendarGroup
Description
Section titled “Description”Adds the computer to the specified calendar group.
For Business Unit support, see Business Unit support.
Syntax
Section titled “Syntax”CMS_AddComputerToCalendarGroup(sUnit, sGroup) As Boolean[bool] CMS_AddComputerToCalendarGroup -group <string>Parameters
Section titled “Parameters”sUnit (String)
Section titled “sUnit (String)”Unit name.
sGroup (String)
Section titled “sGroup (String)”Group name.
Return value
Section titled “Return value”Boolean. True if the function completed successfully.
Example
Section titled “Example”If bStatus Then bStatus = CMS_AddComputerToCalendarGroup(gsUnitName, "CapaInstaller")if (CMS_AddComputerToCalendarGroup -group 'calendar1') { $cs.Job_WriteLog("Added", "Computer added to calendar group: 'calendar1'")}Related functions
Section titled “Related functions”CMS_RemoveComputerFromCalendarGroup Constants Package Property Variables Business Unit support