Powershell script, muta statii alt OU dintr-o lista de statii dintr-un fisier TXT .

Configurare noua (How To)

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

}

Solutie

Tip solutie

Permanent

Voteaza

(8 din 17 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?