Move-ADObject
CautionMove objects between OUs
Move-ADObject -Identity <dn> -TargetPath <oudn>
Relocates users/computers to another OU — which changes their GPOs, so know the destination's policies.
Examples
Move-ADObject 'CN=PC-101,CN=Computers,DC=corp,DC=local' -TargetPath 'OU=Kiosk,DC=corp,DC=local'Move a PC to a kiosk OU
Syntax
Move-ADObject -Identity <dn> -TargetPath <ou dn>
Before you run it
Applied policies change after a move.
Related commands
- Get-ADOrganizationalUnitList OUs
- Get-ADComputerQuery AD computers
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store