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

Posted on 2005-05-02
Last Modified: 2008-03-10
I writing 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 that implement Paged query  
Question by:avior
    LVL 20

    Accepted Solution

    In .NET System.DirectoryServices API IDirectorySearch is implemented under the hood with DirectorySearcher, have you tried that?

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    I'm currently working for a company where I have to upgrade over 50 VB6 programs to VB.NET 2008.  So far I'm about half way through, and I've learned quite a few tricks that drastically improve the performance of VB.NET apps. Because there are a…
    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now