Renaming Organizational Units
Renaming Organizational Units
Renames the specified Organizational Unit.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
Rename the Organization Unit "Munich" to the new name "Bavaria" through setting the name property and a subsequent call to the method Update():
$MyOU = Get-EmdbOrganizationalUnit "emdb:\rootDSE\Managed Users & Computers\solys.local\Munich" $MyOU.Name = "Bavaria" $MyOU.Update() |
Rename the Organization Unit "Munich" to the new name "Bavaria" using the cmdlet Rename-Item:
Cd "emdb:\rootDSE\Managed Users & Computers\solys.local" Rename-Item -Path "Munich" -NewName "Bavaria" |