Skip to content

CMS_AddComputerToDepartmentGroup

Adds a specified computer to the specified department group

It will be unlinked from current department group (if any), since a computer only can be in one department group

For Business Unit support click Business Unit support

CMS_AddComputerToDepartmentGroup(sUnit, sGroup) as Boolean

Unit name

Group name

Boolean, TRUE if function completed successfully.

If bStatus Then bStatus = CMS_AddComputerToDepartmentGroup(gsUnitName, "CapaInstaller")

Scripting Guidelines

CMS_RemoveComputerFromDepartmentGroup Constants Package Property Variables Business Unit support