• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • Last Modified:

Powershell / quest commandlets script that will take a list of machine names and move to a particular OU

Powershell / quest commandlets script that will take a list of machine names and move to a particular OU
0
mjm21
Asked:
mjm21
2 Solutions
 
GovvyCommented:
Import-Csv 'c:\computerlist.csv' | `

Foreach {$computer = get-QADComputer -name $_.computer; `

else {move-QADObject $computer -to $_.target }

}



CSV format is:

Computer,Target
0
 
Krzysztof PytkoActive Directory EngineerCommented:
Follow with Chris-Dent syntax from this EE post at
http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_25829987.html

Nothing more to add :)

Regards,
Krzysztof
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now