title: Powershell Active Directory Attributes Creating User
body: <p>My code:</p>
  
  <pre><code>New-ADUser -samaccountname first_last -Name "first last" -UserPrincipalName aaa@egc.gov.vm -AccountPassword (ConvertTo-SecureString -AsPlainText "p@ssw0rd" -Force) -Enabled $true -PasswordNeverExpires $true -Path 'OU=EGC,DC=egc,DC=gov,DC=vm' -givenname 'first' -sn 'last' -displayname 'display name' -description 'IC NO' -title 'Job Title' -division '3' -physicaldeliveryofficename 'EGNC HQ' -telephonenumber '2424955' -mail 'first.last@egc.gov.bn' -department 'egnc hq' -company 'ministry PMO' -streetaddress 'Full Address Here' -postalcode 'BB3333'
  </code></pre>
  
  <p>One of the Error: </p>
  
  <pre><code>New-ADUser : A parameter cannot be found that matches parameter name 'telephonenumber'.
  </code></pre>
  
  <p>The error follows the the following LDAP attributes:</p>
  
  <ul>
  <li>sn</li>
  <li>physicalDeliveryOfficeName</li>
  <li>telephonenumber</li>
  <li>mail</li>
  </ul>
  
  <p>User creation works if I remove the mentioned attributes.</p>
  
  <p>Any fix for this?</p>
  
  <hr>
  
  <p>Answer for:</p>
  
  <ul>
  <li>sn is Surname</li>
  <li>telephonenumber is officephone (Thanks to David Johnson)</li>
  <li>physicalDeliveryOfficeName is office (Thanks to David Johnson)</li>
  <li>mail is email</li>
  </ul>