Versions Compared

Key

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

...

You can use these variables to make decisions based on membership and names of Business Units.

PowerShell (PowerPacks)

This will Use BU\\ in front of the name to create a group in the BU, using the BU that the device is already a member of.

(blue star) PowerShell
Code Block
languagepowershell
if (CMS_AddComputerToStaticGroup -group 'BU\\static1') {
  $cs.Job_WriteLog("Added", "Computer added to static group: 'static1'")
} 

...