Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For Business Unit support click here


Syntax

(blue star) CMS_AddComputerToStaticGroup(sUnit, sGroup) as Boolean

(blue star) [bool]CMS_AddComputerToStaticGroup -group <string>


Parameters

sUnit (String)

Unit name

sGroup (String)

Group name


Example

(blue star) VBScript
Code Block
vb
languagevbvbnet
If bStatus Then bStatus = CMS_AddComputerToStaticGroup(gsUnitName, "CapaInstaller")
(blue star) Powershell
Code Block
languagepowershell
if (CMS_AddComputerToStaticGroup -group 'static1') {
  $cs.Job_WriteLog("Added", "Computer added to static group: 'static1'")
} 

Scripting Guidelines


Related functions

CMS_RemoveComputerFromStaticGroup