Situatie
$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
}
Soluții pentru problemele tale IT
Leave A Comment?