Exchange 2013 discovery runs in timeout

Hi,

short post about the Exchange 2013 Discovery:) Sometimes the discovery will run into a timeout gereating an event ID that looks like

 Forced to terminate the following process started at XXXXX because it ran past the configured timeout 900 seconds.
 

Command executed: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\V15\bin\exshell.psc1" -Command "& '"C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Monitoring Host Temporary Files 1036\1055\MicrosoftExchangeDiscovery.ps1

 

Apparently this can happen if there are too many replication networks present on the server