CMS_RemoveComputerFromDepartmentGroup
Description
Section titled “Description”Removes a specified computer from a department group
For Business Unit support click Business Unit support
Syntax
Section titled “Syntax”CMS_RemoveComputerFromDepartmentGroup(sUnit, sGroup) As Boolean[bool] CMS_RemoveComputerFromDepartmentGroup -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 function completed successfully.
Example
Section titled “Example”If bStatus Then bStatus = CMS_RemoveComputerFromDepartmentGroup(gsUnitName, "Rome_Sales")if (CMS_RemoveComputerToDepartmentGroup -group 'Rome_Sales') { $cs.Job_WriteLog("Removed", "Computer removed from department group: 'Rome_Sales'")}Related functions
Section titled “Related functions”CMS_AddComputerToDepartmentGroup Constants Package Property Variables Business Unit support