Skip to content

CMS\_AddComputerToStaticGroup

Adds the specified unit to the one or more static groups

For Business Unit support click Business Unit support

:vb: CMS_AddComputerToStaticGroup(sUnit, sGroup) as Boolean

:ps: [bool]CMS_AddComputerToStaticGroup -group <string>

sUnit (String)

Unit name

sGroup (String)

Group name.

It is possible to state more groups by using comma (,) as delimiter

:vb: Boolean, TRUE if function completed successfully.

:ps: Boolean, TRUE if function completed successfully.

If bStatus Then bStatus = CMS_AddComputerToStaticGroup(gsUnitName, "CapaInstaller")
If bStatus Then bStatus = CMS_AddComputerToStaticGroup(gsUnitName, "Zone1,Zone2")
Terminal window
CMS_AddComputerToStaticGroup -group 'static1'

Scripting Guidelines

CMS_RemoveComputerFromStaticGroup