Just wanted to share a common question that is always asked on why Active Directory returns only 1000 results when you perform a query. It is a limitation imposed by Active Directory by default, but it does not mean you cannot increase that values. You can always increase it by changing the MaxPageSize setting in Active Directory but do it with proper caution as it set at 1000 for a reason.
Now if you know the implications of changing it like slowing down the performance of your Active Directory Operations then here is how to increse it.
All you need is to use Ntdsutil.exe which you can type on the run command but if you are using Windows 2008 make sure run the command prompt as an administrator
Once you typed it it will show you the command prompt and follow these steps to increase the limit.
- At the Ntdsutil.exe command prompt, type “LDAP policies”, and then hit ENTER.
- Now type “Set MaxPageSize to 5000”. -> Change 5000 to the Max results you want
- To view the changes, type “Show Values”
- To commit the changes, type “Commit Changes”
- type “q” to quit