Query on MaxPageSize - Exchange 2007
Below is the description ofor MaxPageSize which I found on Microsoft Article 315071."MaxPageSize - This value controls the maximum number of objects that are returned in a single search result, independent of how large each returned object is. To perform a search where the result might exceed this number of objects, the client must specify the paged search control. This is to group the returned results in groups that are no larger than the MaxPageSize value. To summarize, MaxPageSize controls the number of objects that are returned in a single search result. Default value: 1,000"When I ran MS Exchnage BPA, I see that I am suggested to consider changing the valus to default as it is set to 5000. My question is does the value ever get changed automatically if we have not done it manually. What would be the repercutions of changing it back to 1000. Does this has any thing todo with the Powershell queries too - like if I run get-mailbox and in case reult is more than 1000 users, would I not get any thing in output. Just curious to know
December 10th, 2009 8:27pm
I've never seen anything that would change the default value automatically. It is far more likely to have been done manually to provide a workaround for a script or application that doesn't implement client-side LDAP paging of results. As a best practice (to prevent possible DoS attacks and avoid the possibility of searches impacting DC performance) I would suggest changing it back to the default. Tony
Free Windows Admin Tool Kit Click here and download it now
December 10th, 2009 10:37pm
Hello,
Yes, I agree with Tony. The value maybe be changed by a script or third party software, ect... I suggest you change it back to default.
Regarding the Powershell query, if you run get-mailbox or similar get command, you could add switch "-ResultSize Unlimited" to eliminate default display limit of 1000 results in EMS.
Thanks,
Elvis
December 14th, 2009 6:59am