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

  • Thread starter Thread starter Richard
  • Start date Start date
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!
 
Back
Top