...
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.
PowerShell
Code Block | ||
---|---|---|
| ||
if (CMS_AddComputerToStaticGroup -group 'BU\\static1') { $cs.Job_WriteLog("Added", "Computer added to static group: 'static1'") } |
...