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'")
}