Moving Domain Objects
Moving Domain Objects
Moves the specified domain object into the given target container.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
Move the domain "Munich" from the container "Managed Users & Computers" into the container "Managed Users & Computers\solys.local" using the method MoveTo():
$MyDomain = Get-EmdbDomain "emdb:\rootDSE\Managed Users & Computers\Munich" $MyDestinationContainer = Get-EmdbDomain "emdb:\rootDSE\Managed Users & Computers\solys.local" $MyDomain.MoveTo($MyDestinationContainer) |
Move the domain "Munich" from the container "Managed Users & Computers" into the container "Managed Users & Computers\solys.local" using the cmdlet Move-Item:
Move-Item -Path "emdb:\rootDSE\Managed Users & Computers\Munich" -Destination "emdb:\rootDSE\Managed Users & Computers\solys.local" |