The MaxPageSize LDAP policy controls how many objects a single LDAP query can return. Default is 1000 — increase it when external applications need larger result sets. Be aware of what you're changing.
1. Open a shell as admin on a DC
2. Launch ntdsutil.exe
ntdsutil
3. Enter LDAP policy context
ldap policies
4. Open connections
connections
5. Connect to the target DC
connect to server <servername>
6. Go back one level
q
7. View current values
show values
Default: MaxPageSize 1000
8. Set the new value
set maxpagesize to 5000
9. Commit
commit changes
10. Exit
q
H@ppy H@cking