title: Adding Users to AD using New-ADUser and Splatting
body: <p>I've run into issue using splatting with the New-ADUser cmdlet. I've been able to add all the normal attributes using splatting, but now I need to add an extension attributes as part of the parameters for the new user.</p>
  
  <p>I'm creating an array as follows:</p>
  
  <pre><code>$users = @{ “name” = “fred 
  “givenName” = “Manfred" 
  “l” = “lexington”
  "extensionAttrbute1" = "Test"}
  </code></pre>
  
  <p>But when I run the script, it gives me the following errors: "InvalidArgument", 
  "ParameterBindingException" and "NamedParameterNotFound,Microsoft.ActiveDirectory.Management.Commands.NewADUser"</p>
  
  <p>And the actual exception message is this:
  "A parameter cannot be found that matches parameter name 'extensionAttribute1'" 
  I can actually add the extensionAttribute directly using New-ADUSer, but adding in as part of the array is the likely issue. Do I need to preface the extensionAttribute differently in the array or something?</p>
  
  <p>Thanks,
  Bjarne</p>