You are not running Powershell. You are running VB script's cscript.exe. You need to execute Powershell.exe if you wish to run a .ps1 script.
SCOM 2019 R2 Powershell script monitor not running
Fabio Brandao
20
Reputation points
I have SCOM2019 and I have problems running my scripts in PowerShell. I can't find the website: https://gallery.technet.microsoft.com/Sample-Management-Pack-17b76379. Where can I find this Management-Pack.
Error: Script or Executable Failed to run
Accepted answer
2 additional answers
Sort by: Most helpful
-
Fabio Brandao 20 Reputation points
2024-05-06T13:31:00.0266667+00:00 I have SCOM2019 and I have problems running my scripts in PowerShell. I can't find the website: https://gallery.technet.microsoft.com/Sample-Management-Pack-17b76379. Where can I find this Management-Pack.
-
Fabio Brandao 20 Reputation points
2024-05-06T13:32:59.8666667+00:00 Mptox80, that's exactly the problem! How do I run a powershell script since this type of monitor doesn't appear for me, as shown in the picture above! I think I have to install a Management-Pack but I can't find it to download! This path doesn't work: https://gallery.technet.microsoft.com/Sample-Management-Pack-17b76379