Exchange Server - How to filter Mailboxes and change the number of Mailboxes fetched
From Applications Manager version 172900 onwards, we have supported filtering options in Exchange Server Mailbox Statistics.
Top Mailboxes
- By default we fetch the top 20 mailboxes based on the Total Mailbox Size metric.
- To increase the number of mailboxes fetched, update the Global Config key "am.exchange.server.mailbox.top.limit".
- Run the following query in the Applications Manager query tool:

INSERT INTO AM_GLOBALCONFIG VALUES ('am.exchange.server.mailbox.top.limit', '100')
- Customers can configure the system to fetch the top mailboxes based on any utilization metric.
- For example, use the following query to fetch only mailboxes with Warning Quota Utilization above 85%:

INSERT INTO AM_GLOBALCONFIG VALUES ('am.exchange.server.mailbox.filter.criteria', 'Warning Quota Utilization_85')
- Customers can use any utilization metric name and specify a percentage threshold above which data should be collected.
Inactive Mailboxes
- By default, we fetch the 100 most inactive mailboxes.
- To increase the number of mailboxes fetched, update the Global Config key "am.exchange.server.mailbox.inactive.limit".
- Run the following query in the Applications Manager query tool:

INSERT INTO AM_GLOBALCONFIG VALUES ('am.exchange.server.mailbox.inactive.limit', '200')

Note:
- For both am.exchange.server.mailbox.top.limit and am.exchange.server.mailbox.inactive.limit, the maximum value allowed is 1000.
- When applying these configurations for the first time, use the INSERT query. The changes will take effect in the next poll of the Exchange Server monitor.
- If configurations need to be modified later, use an UPDATE query, and restart Applications Manager for the changes to apply.
New to ADSelfService Plus?
Related Articles
Exchange Server Monitor - FAQs
1. What are the ports used in Exchange Server monitoring? WMI mode: Remote Procedure Call (RPC) (default : 135) WMI uses DCOM for remote communication. The server monitored by Applications Manager uses a random port number above 1024 by default to ...
Mail Server Monitor - Troubleshooting
Common Mail Server Monitor Errors and Troubleshooting Guide 1. Unknown Host Error Description: This error occurs when the mail client cannot resolve the hostname of the mail server to an IP address. The issue typically arises from DNS resolution ...
Troubleshooting errors in Exchange Online (PowerShell Mode)
Prerequisites: Ensure that you have met all the prerequisites for the Microsoft 365 monitor. From Applications Manager version 16300 onwards, Microsoft 365 monitor will use Microsoft Graph API as the primary mode of data collection. We have migrated ...
Data Collection: Troubleshoot data collection issues in Exchange Server monitor
Prerequisites: Ensure that you have met all the prerequisites for the Exchange Server monitor. Refer to the below error scenarios and refer to the respective troubleshooting steps. No data collected for few metrics or all the metrics in Exchange ...
Steps to run individual PowerShell scripts used in Exchange Server monitor
If "Unable to create remote PowerShell session" error occurs or no data is collected in Exchange Server monitor added in PowerShell mode, follow the below steps to check the individual script output: Check whether all the prerequisites for Exchange ...