CMS_AddComputerToStaticGroup
Description
Section titled “Description”Adds the specified unit to the one or more static groups
For Business Unit support click Business Unit support
Syntax
Section titled “Syntax”CMS_AddComputerToStaticGroup(sUnit, sGroup) as Boolean[bool] CMS_AddComputerToStaticGroup -group <string>Parameters
Section titled “Parameters”sUnit (String)
Section titled “sUnit (String)”Unit name
sGroup (String)
Section titled “sGroup (String)”Group name.
It is possible to state more groups by using comma (,) as delimiter
Return value
Section titled “Return value”Boolean, TRUE if function completed successfully.
Boolean, TRUE if function completed successfully.
Example
Section titled “Example”If bStatus Then bStatus = CMS_AddComputerToStaticGroup(gsUnitName, "CapaInstaller")If bStatus Then bStatus = CMS_AddComputerToStaticGroup(gsUnitName, "Zone1,Zone2")CMS_AddComputerToStaticGroup -group 'static1'Related functions
Section titled “Related functions”CMS_RemoveComputerFromStaticGroup Constants Package Property Variables Business Unit support