Renaming Domain Objects

Renames the specified domain object.


Examples:


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


Rename the domain "Munich" to the new name "Bavaria" through setting the name property and a subsequent call to the method Update():


$MyDomain = Get-EmdbDomain "emdb:\rootDSE\Managed Users & Computers\solys.local\Munich"

$MyDomain.Name = "Bavaria"

$MyDomain.Update()


Rename the domain "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"