Renaming Static Groups

Renames the specified Static Group.


Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


Rename the Static Computer Group"Admin-Laptops" in the context "solys.local\Chicago\ITService\Workstations" to the new name "Admin-Notebooks" 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\Admin-Laptops"

$MyGroup.Name = "Admin-Notebooks"

$MyGroup.Update()


Rename the Static Computer Group"Admin-Laptops" to the new name "Admin-Notebooks" using the cmdlet Rename-Item:


Cd "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations"

Rename-Item -Path "Admin-Laptops" -NewName "Admin-Notebooks"