title: Powershell command to find employee number and update business unit
body: <p>I am trying to write a powershell script that will first import from a CSV file. The CSV file will contain the AD employee number attribute, and also the business unit attribute.</p>
  
  <p>The script needs to find the AD user based on employee number attribute from the CSV, then update the business unit attribute for that user also contained in the CSV file. CSV will look like:</p>
  
  <pre><code>0,1
  8022651,Sales &amp; Marketing
  </code></pre>
  
  <p>So far I have been able to lookup the employee number using this:</p>
  
  <pre><code>$EmployeeNumber='8022651'
  get-ADUser -Filter {EmployeeNumber -eq $EmployeeNumber}
  </code></pre>
  
  <p>I know I can use Import-CSV, but don't know how to piece it all together. Any help would be greatly appreciated.</p>