In SCOM 2012 R2, I see a lot of alerts on my monitored Hyper-V servers: Forced to terminate the following PowerShell script because it ran past the configured timeout 300 seconds.
Script Name: DiscoverHyperV2012R2VirtualMachine.ps1 OR GetHyperVMeteringUsage OR GetDiskPartitionSpaceV2.ps1 OR VirtualMachineReplicaDiscoveryPS.ps1
When I zoom in on the Operations Manager log on 1 of the Hyper-V host machines, I see that the script is running and creation informational events in the log until some seconds before the timeout.
The Hyper-V hosts run a lot of VM's (60 or more). So is it possible that the timeout of 300 seconds just is too low?
How to fix this? I want the ps scripts to run without being ended prematurely.
Regards,
Stephan van de