Computer verschieben

Verschiebt das angegebene Computer-Objekt in den angegebenen Ziel-Container.


Beispiele:


Hinweis: Voraussetzung für die Beispiele ist ein verbundenes PowerShell-Laufwerk.


Verschieben des Computers "XP01" aus dem Container "Managed Users & Computers\solys.local\Chicago\ITService\Workstations" nach "Managed Users & Computers\solys.local\Chicago\ITGlobal\Workstations" mit Hilfe der MoveTo()-Methode:


$MyComputer = Get-EmdbComputer "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations\XP01"

$MyDestinationContainer = Get-EmdbOrganizationalUnit "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITGlobal\Workstations"

$MyComputer.MoveTo($MyDestinationContainer)


Verschieben des Computers "XP01" aus dem Container "Managed Users & Computers\solys.local\Chicago\ITService\Workstations" nach "Managed Users & Computers\solys.local\Chicago\ITGlobal\Workstations" mit Hilfe des Move-Item Cmdlets:


Move-Item -Path "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations\XP01" -Destination "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITGlobal\Workstations"