title: Powershell - Get-aduser return no value using a $var
body: <p>i'm using this command to query AD for usernames::</p>
  
  <pre><code>get-aduser -filter 'SamAccountName -like "trembto*"
  </code></pre>
  
  <p>The AD return me some result that comply with that search.</p>
  
  <p>when I try to apply this line with a $var inside, I get no result:</p>
  
  <pre><code>$userloop = "trembto"
  get-aduser -filter 'SamAccountName -like "$($userloop)*"'
  </code></pre>
  
  <p>I should get the same result but it always returning me nothing, no error message
  I tried may alternative for the var part but in vain.</p>
  
  <p>Thank for helping me</p>