Skip to content

CMS_RemoveComputerFromDepartmentGroup

Removes a specified computer from a department group

For Business Unit support, see Business Unit support

CMS_RemoveComputerFromDepartmentGroup(sUnit, sGroup) As Boolean

Not used. The function always applies to the computer that runs the package. Pass gsUnitName. PowerShell doesn’t have this parameter.

Group name. To specify more than one group, separate the names with commas, for example "Zone1,Zone2".

Boolean. True if the request was processed by the CapaInstaller server. The function also returns True if the group can’t be found or the computer isn’t a member of it.

If bStatus Then bStatus = CMS_RemoveComputerFromDepartmentGroup(gsUnitName, "Rome_Sales")

Scripting Guidelines

CMS_AddComputerToDepartmentGroup Constants Package Property Variables Business Unit support