title: Get All user from active directory C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/90652/can-i-get-more-than-1000-records-from-a-directorysearcher-in-asp-net">Can I get more than 1000 records from a DirectorySearcher in Asp.Net?</a><br>
    <a href="https://stackoverflow.com/questions/3488394/c-sharp-active-directory-services-findall-returns-only-1000-entries">c# Active Directory Services findAll() returns only 1000 entries</a>  </p>
  </blockquote>
  
  
  
  <p>I have a problem when trying read all user from AD. Active directory contain over 3000 user, but I can read only 1000. This is my code</p>
  
  <pre><code>public DirectoryEntry directoryEntry = new DirectoryEntry(ldap, userName, password);
  public DirectorySearcher directorySearcher = new DirectorySearcher(directoryEntry);
  
  var allUsers = directorySearcher.FindAll();
  </code></pre>