title: Cannot convert Error on updating a attribute in ad using set-aduser
body: <p>I am getting an error when tyring to run this script.  I am running the -whatif and get this error:    </p>
  
  <p>I get these errors </p>
  
  <pre><code>TerminatingError(Set-ADUser): "Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'EmployeeID'. Specified method is not supported."
  </code></pre>
  
  <p>The csv file looks like this </p>
  
  <pre><code>employeeID,name
  78549625,ktest
  43939399,dtest
  </code></pre>
  
  <p>Here is the script: </p>
  
  <pre><code>$stuff = Import-Csv c:\temp\empid\finalexport_test.csv
  $empid = $stuff.employeeid
  $userid = $stuff.name
  $empid
  $userid
  
  
  foreach ($user in $userid)
  {
      Set-ADUser -Identity $user -EmployeeID $empid -whatif
  
      $empid
      $user
  
  Write "The user $user is now assigned the employee Id of $empid.  This was not actually written to AD yet"
  write "The information below shows the user and the feild that would have been updated."
  Get-ADUser -identity $user -Property * | select samaccountname, employeeid
  </code></pre>
  
  <p>}</p>