Steps to run individual PowerShell scripts used in Exchange Server monitor

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:
  1. Check whether all the prerequisites for Exchange server are implemented.
  2. For Queues monitoring in non-mailbox roles, if CredSSP authentication is enabled, check whether the prerequisites for enabling CredSSP authentication are implemented.
  3. 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 hostnameusernameand password with that of the reported Exchange server as used in the monitor added in Applications Manager.
-> Performance Metrics:
Quote.\<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.
  1. Common Counters - EX_CommonCounters.ps1
  2. Exchange 2019 Mailbox Role - E2019_MBX_Counters.ps1
  3. Exchange 2019 Edge Transport Role - E2016_EDGE_Counters.ps1
  4. Exchange 2016 Mailbox Role - E2016_MBX_Counters.ps1
  5. Exchange 2016 Edge Transport Role - E2016_EDGE_Counters.ps1
  6. Exchange 2013 Mailbox Role - E2013_MBX_Counters.ps1
  7. Exchange 2013 Client Access Role - E2013_CAS_Counters.ps1
  8. Exchange 2013 Edge Role - E2013_EDGE_Counters.ps1
  9. Exchange 2010 Mailbox Role - E2010_MBX_Counters.ps1
  10. Exchange 2010 Client Access Role - E2010_CAS_Counters.ps1
  11. Exchange 2010 Edge/Hub Transport Role - E2010_TRANSPORT_Counters.ps1
  12. Exchange 2010 Unified Messaging Role - E2010_UM_Counters.ps1
  13. Exchange 2007 Mailbox Role - E2007_MBX_Counters.ps1
  14. Exchange 2007 Client Access Role - E2007_CAS_Counters.ps1
  15. Exchange 2007 Hub Transport Role - E2007_HUB_Counters.ps1
  16. Exchange 2007 Edge Transport Role - E2007_EDGE_Counters.ps1
  17. Exchange 2007 Unified Messaging Role - E2007_UM_Counters.ps1
  18. Exchange 2003 and Below - E2003_Counters.ps1
-> Server Component States:
QuoteExchange Server version 2013 and above:
            .\E2013_ComponentStates.ps1 'hostname' 'username' 'password'
-> Database Statistics:
QuoteExchange 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:
Quote
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:
QuoteMailbox 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'
  1. Get the full output and copy it to a text file. 
Try to rectify the known errors found or reach out to our support team with the screenshots of the prerequisites done and text file containing the output to appmanager-support@manageengine.com along with the latest Support Information File (SIF) from Applications Manager with print all logs enabled for analysis.


                  New to ADSelfService Plus?