CMS_RemoveComputerFromCalendarGroup

Description

Removes a specified computer unit from a calendar group

For Business Unit support click here

Syntax

CMS_RemoveComputerFromCalendarGroup(sUnit as String, sGroup as String) as Boolean

[bool]CMS_RemoveComputerFromCalendarGroup -group <string>

Parameters

sUnit (String)

Unit name

sGroup (String)

Group name

Return value

Boolean, TRUE if function completed successfully. 

Boolean, TRUE if function completed successfully.

Example 

VBScript
If bStatus Then bStatus = CMS_RemoveComputerFromCalendarGroup(gsUnitName, "CapaInstaller")
PowerShell
if (CMS_RemoveComputerToCalendarGroup -group 'calendar1') { $cs.Job_WriteLog("Removed", "Computer removed from calendar group: 'calendar1'") }

Scripting Guidelines

Related functions

CMS_AddComputerToCalendarGroup