locked
Community PowerShellMonitoring MP - start service with PS RRS feed

  • Question

  • Hi, today I imported Community PowerShellMonitoring MP into SCOM 2019 - I want to utilize PS scripts as recovery tasks, for instance very trivial one such as starting particular service. Having tried with simple Start-Service -Name spooler nothing happened. Am I missing something regarding how PS commands are sent to target server where service is in stopped state? I would like to use Start-Sleep -Seconds 60 before Start-Service line - if not I would get only one email saying that alert resolution state is closed with no email sent (alert generated) for resolution state new. That's why I do not like solution using command net start spooler as recovery task.

    Thank you in advance.

    Monday, August 3, 2020 10:19 AM

All replies

  • Could you be more specific about how you created the discovery, for which monitor, what's the exact powershell you used etc?

    Or even better, post the full XML code for that monitor and recovery?

    Monday, August 3, 2020 3:57 PM