Move-ADObject
注意オブジェクトのOU移動
Move-ADObject -Identity <dn> -TargetPath <oudn>
ユーザー・PCを別OUへ移動。OU移動は適用GPOが変わるため、移動先のポリシーを理解した上で実施する。
実行例
Move-ADObject 'CN=PC-101,CN=Computers,DC=corp,DC=local' -TargetPath 'OU=Kiosk,DC=corp,DC=local'端末を専用OUへ移動
書式
Move-ADObject -Identity <dn> -TargetPath <ou dn>
実行前の注意
適用ポリシーが変わる点に注意。
関連コマンド
- Get-ADOrganizationalUnitOU構造の確認
- Get-ADComputerADコンピュータ照会