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 server are implemented.
- For Queues monitoring in non-mailbox roles, if CredSSP authentication is enabled, check whether the prerequisites for enabling CredSSP authentication are implemented.
- Open an PowerShell as Administrator in the Applications Manager installed server, navigate to <Applications Manager Home>\working\conf\application\scripts\powershell directory and execute the below commands by replacing hostname, username, and password with that of the reported Exchange server as used in the monitor added in Applications Manager.
-> Performance Metrics:
.\<scriptname> 'hostname' 'username' 'password'
Example:
.\EX_CommonCounters.ps1 'hostname' 'username' 'password'Replace <scriptname> with the script file from below list based on version and role.
- Common Counters - EX_CommonCounters.ps1
- Exchange 2019 Mailbox Role - E2019_MBX_Counters.ps1
- Exchange 2019 Edge Transport Role - E2016_EDGE_Counters.ps1
- Exchange 2016 Mailbox Role - E2016_MBX_Counters.ps1
- Exchange 2016 Edge Transport Role - E2016_EDGE_Counters.ps1
- Exchange 2013 Mailbox Role - E2013_MBX_Counters.ps1
- Exchange 2013 Client Access Role - E2013_CAS_Counters.ps1
- Exchange 2013 Edge Role - E2013_EDGE_Counters.ps1
- Exchange 2010 Mailbox Role - E2010_MBX_Counters.ps1
- Exchange 2010 Client Access Role - E2010_CAS_Counters.ps1
- Exchange 2010 Edge/Hub Transport Role - E2010_TRANSPORT_Counters.ps1
- Exchange 2010 Unified Messaging Role - E2010_UM_Counters.ps1
- Exchange 2007 Mailbox Role - E2007_MBX_Counters.ps1
- Exchange 2007 Client Access Role - E2007_CAS_Counters.ps1
- Exchange 2007 Hub Transport Role - E2007_HUB_Counters.ps1
- Exchange 2007 Edge Transport Role - E2007_EDGE_Counters.ps1
- Exchange 2007 Unified Messaging Role - E2007_UM_Counters.ps1
- Exchange 2003 and Below - E2003_Counters.ps1
-> Server Component States:
Exchange Server version 2013 and above:
.\E2013_ComponentStates.ps1 'hostname' 'username' 'password'-> Database Statistics:
Exchange Server version 2010 and above:
.\E201X_MBX_Tables.ps1 'hostname' 'username' 'password'
Exchange Server version 2007:
.\E2007_MBX_Tablesps1 'hostname' 'username' 'password'-> Top Mailboxes and Inactive Mailbox Users:

Applications Manager version 172900 and above:
.\EX_Mailbox_Statistics.ps1 'hostname' 'username' 'password'
Applications Manager version below 172900:
.\EX_Mailboxes.ps1 'hostname' 'username' 'password' 'TopMailboxes,InactiveMailboxes'
-> Exchange Queues:
Mailbox Role:
.\EX_Mailboxes.ps1 'hostname' 'username' 'password' 'ExchangeQueues'
Non-Mailbox Role:
(Use the Credssp argument if used in the Exchange Server monitor)
.\EX_Queues.ps1 'hostname' 'username' 'password' 'Credssp'
- Get the full output and copy it to a text file.
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 ...
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 ...
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 ...
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 ...
Self monitor Applications Manager using Real User Monitoring
We can monitor the Applications Manager using Real User Monitoring with a Java Script injection and this can be used to measure the Applications Manager's performance continuously. All you need is to install and setup the Real User Monitoring (RUM) ...