• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 428
  • Last Modified:

Active Directory - How to get All Users of the domain (more than 1000) paged query in vb.net

Hi
I writing vb.net application that needs to go over all domain users (more than 1000)
and I am getting only the first 1000 users
In msdn documentation says that you can't get more than 1000, and there is c++ code that inplments a paged query using IDirectorySearch .
I did not find a good code sample in vb.net that implement Paged query  
0
avior
Asked:
avior
1 Solution
 
ihenryCommented:
In .NET System.DirectoryServices API IDirectorySearch is implemented under the hood with DirectorySearcher, have you tried that?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/directoryservices_directorysearcher_pagesize.asp
0
 
aviorAuthor Commented:
Dear ihenry
with my games I have set the sizelimit property ,my guess that this caused  the problem
now i have set it to  0 , and set the pagesize to 500 and  it worked like magic.
Thanks
 
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now