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?