title: Filter result from Get-ADUser using sAMAccountname
body: <p>I would like to extract a username from AD using <code>Get-ADUser</code>. The issue I'm having is when using <code>sAMAaccount</code> name as filter, I get multiple results if the value is found in multiple entries. To illustrate, if my <code>samaccountname</code> is 'a123b', and my coworker's is 'c1234d', I get both our names when I run this:</p>
  
  <pre><code>get-aduser -ldapFilter "(samaccountname=*123*)"| select Name
  </code></pre>
  
  <p>I would like to return only my information based on '123' and not '1234'</p>
  
  <p>I've already tried the following as well to no avail:</p>
  
  <pre><code>get-aduser -Filter "samaccountname -like '*123*'" | select Name
  </code></pre>