Directory Searcher.FindAll() not returning all of the defined filt

R

Richard

I am trying to search for all users and computers in the Active
Directory(seperately). I have set the DirectorySearcher.PageSize to
System.Int32.MaxValue, just to make sure I get all results. I am still
returning only 4914 users out of approximately 5300 and 678 out of approx.
930 computers.

The OUs in the AD have sub-OUs and so I tried a recursive algorithm to load
all OUs into a collection and then ".FindAll()" in each OU. The result was
the same as when I tried .FindAll() on the root OU.

I also tried setting PageSize to specifically 1000 (per another thread I
read) still the same result.

If anyone could provide any help or suggestions as to what might be wrong or
what I have forgot to do, I would greatly appreciate it.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top