CMS\_AddComputerToCalendarGroup
Description
Section titled “Description”Adds the computer the specified calendar group
For Business Unit support click Business Unit support
Syntax
Section titled “Syntax”:vb: CMS_AddComputerToCalendarGroup(sUnit, sGroup) as Boolean
:ps: [bool]CMS_AddComputerToCalendarGroup -group <string>
Parameters
Section titled “Parameters”sUnit (String)
Unit name
sGroup (String)
Group name
Return value
Section titled “Return value”:vb: Boolean, TRUE if function completed successfully.
:ps: Boolean, TRUE if function completed successfully.
Example
Section titled “Example”:vb: VBScript
Section titled “:vb: VBScript”If bStatus Then bStatus = CMS_AddComputerToCalendarGroup(gsUnitName, "CapaInstaller"):ps: PowerShell
Section titled “:ps: PowerShell”if (CMS_AddComputerToCalendarGroup -group 'calendar1') { $cs.Job_WriteLog("Added", "Computer added to calendar group: 'calendar1'")}Related functions
Section titled “Related functions”CMS_RemoveComputerFromCalendarGroup