PowerShell. Move a list of computers to a specify organisation unit in Active Directory

Move – list – csv  – computers  – specify – OU – PowerShell – PowerGui

$computers = Get-Content c:\Users\name\Desktop\notebooks.csv
$computers | Foreach{Get-QADComputer $_ | Move-QADObject -NewParentContainer “ou=ntb,ou=computers,ou=domain,dc=domain,dc=local”}

Advertisements