title: Ldap script works only with one email
body: <p>Currently have this code but its not looping or working correctly. </p>
  
  <pre><code>$path = "D:\users.csv"
  $csv = Import-Csv $path 
  Import-Module ActiveDirectory
  
  foreach($line in $csv){
      $User = Get-ADUser -LDAPFilter "(&amp;(objectclass=user)(mail=$($line.Email)))"
      If ($User -eq $Null) {
          "User does not exist in AD   " + $line.Email 
      } Else {
          "User found in AD  - " + $line.Email
      }
  }
  </code></pre>