By default, windows returns only a maximum of 1000 objects in response to a single LDAP query. This can be a limitation when you have more than 1000 objects in your Active Directory and you are running some kind of script that does a bulk import of objects (user accounts and/or computers) from Active Directory.
Some applications like Adobe Connect also require such bulk imports. If you find that the number of user accounts imported from Active Directory is exactly 1000 when you are sure there are more, its time to take a look at this.
The 1000-object limit is governed by the MaxPageSize LDAP administration limit, which is defined using NTDSUTIL. To increase the value:
- Open Command Prompt on a domain controller, logged in as domain administrator.
- Type NTDSUTIL and press ENTER.
- In the ntdsutil: prompt, type ldap policies
- In the ldap policy: prompt, type connections
- In the server connections: prompt, type connect to server <FQDN of domain controller>
- Once you are connected, type q to come back to the ldap policy: prompt.
- If you type show values, you can see the current value for the administration limits, including the MaxPageSize limit.
- To change the value to allow up to 30,000 objects to be returned in a single LDAP query, type set MaxPageSize to 30000
- You can view your changes by typing Show Changes. Note that the new values appear in brackets, because you have not yet commited your changes.
- To commit changes type commit changes