title: Import Users into AD Using CSV & PowerShell - ExtensionAttribute2 Issue
body: <p>I'm trying to import users into AD, using a PowerShell script, and a CSV.</p>
  
  <p>Here's my script (with names removed):</p>
  
  <pre><code>$pass = ConvertTo-SecureString "passwordhere" -AsPlainText -Force
  
  Import-Csv .\adimport.csv | New-ADUser -AccountPassword $pass -Enabled $true -ChangePasswordAtLogon $true
  
  Get-ADUser -Filter * -SearchBase 'OU=&lt;ouname&gt;,OU=&lt;ouname&gt;,OU=&lt;ouname&gt;,OU=&lt;ouname&gt;,DC=&lt;name&gt;,DC=&lt;name&gt;,DC=&lt;name&gt;,DC=&lt;name&gt;' -Properties userPrincipalName | foreach { Set-ADUser $_ -UserPrincipalName "$($_.samaccountname)@&lt;domainname&gt;"}
  </code></pre>
  
  <p>And here's how my CSV looks:</p>
  
  <pre><code>Name    Username    SamAccountName  GivenName   Surname DisplayName Description Path    Enabled Postalcode  StreetAddress   City    Title   Office  Company extensionAttribute2 officephone
  </code></pre>
  
  <p>Everything works fine, the users are imported (into the correct OU), and all the information is updated, apart from extensionAttribute2.</p>
  
  <p>Does anyone have know what I would need to change to get extensionAttribute2 in AD to import the information under extensionAttribute2, from the CSV, when running the script?</p>
  
  <p>If anyone needs any more information, let me know.</p>
  
  <p>Any help would be appreciated. Thanks.</p>