Changing the Definition of Dynamic Groups
Changing the Definition of Dynamic Groups
Changing the definition of Dynamic Groups.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
Extend the Group definition of the Dynamic Computer Group "Lenovo-Workstations" in the context "Managed Users & Computers\solys.local\Chicago\ITService\Workstations" with an additional qualifier. Now Computers whose vendor name starts with the substring "Lenovo" or with the substring "IBM" may become members of this group:
Cd "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations" $MyGroup = Get-EmdbGroup "Lenovo-Workstations" $MyGroup.Filter = "(&(|(BasicInventory.Vendor=Lenovo*)(BasicInventory.Vendor=IBM*)))" $MyGroup.Update() |
Hint: In section Using Filters approaches for creating filters are discussed. |