>I have a method which retrieves all users from Active Directory 2000.
>The problem is that i don't get all the users but only 1000 users.
Yes, that's the default for the search - if you really have more
objects and need them all, you'll need to do "paged" searches by
setting the .PageSize property on the DirectorySearcher:
>DirectoryEntry directoryEntry1=new DirectoryEntry(RootDSE,name,psw);
>DirectorySearcher mySearcher = new DirectorySearcher(directoryEntry1);
>mySearcher.Filter = ("(objectClass=user)");
mySearcher.PageSize = 500;
Now, AD will send back ALL matching objects in packets of 500 -
totally transparent to you, for you, nothing changes.
MArc