Moving Dynamic Groups
Moving Dynamic Groups
Moves the specified Group object into the given target container.
Beispiele:
Hint: The execution of these examples requires a connected PowerShell drive. |
Move the Dynamic Computer Group "DELL-Laptops" from the container "Managed Users & Computers\solys.local\Chicago\ITService\Workstations" into the container "Managed Users & Computers\solys.local\Chicago\ITGlobal\Workstations" using the method MoveTo():
$MyGroup = Get-EmdbGroup "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations\DELL-Laptops" $MyDestinationContainer = Get-EmdbOrganizationalUnit "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITGlobal\Workstations" $MyGroup.MoveTo($MyDestinationContainer) |
Move the Dynamic Computer Group "Lenovo-Workstations" from the container "Managed Users & Computers\solys.local\Chicago\ITService\Workstations" into the container "Managed Users & Computers\solys.local\Chicago\ITGlobal\Workstations" using the cmdlet Move-Item:
Move-Item -Path "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations\Lenovo-Workstations" -Destination "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITGlobal\Workstations" |