Renaming Dynamic Groups
Renaming Dynamic Groups
Renames the specified Dynamic Group object.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
Rename the Dynamic Computer Group "DELL-Laptops" in the context "solys.local\Chicago\ITService\Workstations" to the new name "Dell-Laptops" through setting the name property and a subsequent call to the method Update():
$MyGroup = Get-EmdbGroup "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations\DELL-Laptops" $MyGroup.Name = "Dell-Laptops" $MyGroup.Update() |
Rename the Dynamic Computer Group "Lenovo-Workstations" to the new name "Lenovo-Desktops" using the cmdlet Rename-Item:
Cd "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations" Rename-Item -Path "Lenovo-Workstations" -NewName "Lenovo-Desktops" |