Powershell script, muta statii alt OU dintr-o lista de statii dintr-un fisier TXT .
$computers=gc “D:\scripts\powershell\computers.txt”
$targetpath = “OU=IONUT,OU=Standard,OU=Workstations,DC=IONUTHOME,DC=ro”
foreach ($computer in $computers) {
Get-ADComputer $computer | Move-ADObject -TargetPath $targetpath
}
[mai mult...]