Skip to content

CMS_AddUnitToBusinessUnit

Adds the unit on which the script is executed to the specified Business Unit. UserJobs add user and ComputerJobs add the computer

The Business Unit must exist. It isn’t created automatically.

CMS_AddUnitToBusinessUnit(sBusinessUnitName) as Boolean

BusinessUnit name

Boolean. True if the unit was linked to the Business Unit. False if the Business Unit doesn’t exist or the unit couldn’t be linked.

If bStatus Then bStatus = CMS_AddUnitToBusinessUnit("CapaInstaller")

Scripting Guidelines

CMS_RemoveComputerFromDepartmentGroup Constants Package Property Variables Business Unit support