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.