scripts used within the context of the PRTG network monitoring tool
This PowerShell script checks if a scheduled task is currently running on a remote computer. It outputs XML that can be fed to the PRTG "Advanced Script" sensor.
Just normal PowerShell. And PSRemoting must be enabled on the target machine
- DNS-name of the computer on which you want to check the task status
- Name of the task
None
Call with two arguments as mentioned above, for example:
C:\scripts\prtg\prtg_get_task_state.ps1 "targetServerName" "scheduledTaskName"
A large string, which happens to be XML readable by the PRTG "Advanced Script" Sensor, for example:
None so far. Please also have a look at the comments within the script itself 😊
Well, OK, and here is the PRTG documentation for the sensor that this script should be used together with:
https://www.paessler.com/manuals/prtg/exe_script_advanced_sensor
- improve the code with a pull request
- open an issue


