title: How to dynamically move computer accounts from Computers OU
body: <p>Its pretty "simple" what i want  to achieve. I have people creating Computer Objects on my AD and leaving there without moving them to the appropiate OU.</p>
  
  <p>I would like a powershell script to read the list of computers from the Computers OU, and depending the first 5 or 6 letters from the Computer name, move it to the appropiate OU, reading the list of destination OUs from a CSV or txt or whatever file type.</p>
  
  <p>I need to move more than 100 computers and I would like to scan them, and move them to their corresponding OU.</p>
  
  <p>I've thought to use a variable for the computer accounts, then a <code>foreach</code> and a <code>switch</code> or something similar, and 1-by-1 start moving the accounts. But I'm stuck.</p>
  
  <p>Thank you!!!!</p>