Error: Timeout exceeded during script execution

Error: Timeout exceeded during script execution

This error occurs when some powershell scripts take longer time than the mentioned timeout value when Exchange server monitor is added in Powershell mode.

1. Try polling the monitor and check if the error continues to retain. 
2. Open PowerShell in administrator mode in the Applications Manager installed machine.
3. Navigate to <AppManager-Home>\working\conf\application\scripts\powershell directory.
4. Run the respective commands for the metrics which is causing the timeout error.
5. Replace hostnameusername, and password with that of the reported Exchange server to find the time taken for the execution of each script.
Info
Format:
            Measure-Command{<command-to-run-script>}
Example:
            Measure-Command{.\E201X_MBX_Tables.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'
-> Server Component States:
QuoteExchange Server version 2013 and above:
            .\E2013_ComponentStates.ps1 'hostname' 'username' 'password'
-> 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
6. Check the time taken for the script execution and based on that set the Timeout and Polling interval in the Edit monitor page and poll the monitor.
Notes
Note: In Settings -> Performance Polling -> Optimize data collection -> Monitor Type as Exchange Server, increase the polling interval for the metrics taking longer time to collect or set to "Never collect data" if it is not required to be monitored.

                  New to ADSelfService Plus?