We have created a Powershell script that starts the VM (under VMware) that was switched off at night. The script itself works, but once this is done via notification it doesn't work. As part of the notification, a mail or an entry in the event log is also created - this works without any problems.
The execution policy is set to "RemoteSigned".
Who can help here so that the Powershell script is also started?
Article Comments
Hello Felix,
yes I use "execute Program" in the notification template. All necessary components are on the core server. If I run the script manually via Powershell, it works without any problems.
Best Regards Uwe
Sep, 2021 - Permalink
Hello Uwe,
For Powershell notifications, bear in mind, it depends on which version (32bit or 64bit) of the PRTG Core Service is running, if either the 32bit or the 64bit Powershell are used.
In addition I would recommend to check Logs > System Events > Notification related if there is any error message displayed.
If the issue persists and you can't find the cause of it, I would ask you to contact support@paessler.com.
Kind regards
Felix Wiesneth - Team Tech Support
Sep, 2021 - Permalink
Hello Uwe,
How did you start the script? Did you use the "Execute Program" option in the notification template? Did you try to run the script on the Core Server?
Kind regards
Felix Wiesneth - Team Tech Support
Sep, 2021 - Permalink