I used a batch script below to restart a remote service The batch file itself uses psexec to stop / restart a remote service on another server.
@echo off
REM restarts Apache Tomcat Service
"c:\Program Files\PRTG Network Monitor\Custom Sensors\EXE\psexec" \\xxx.xxx.xxx.xxx -u Domain\User -p Password net stop "Apache Tomcat"
"c:\Program Files\PRTG Network Monitor\Custom Sensors\EXE\psexec" \\xxx.xxx.xxx.xxx -u Domain\User -p Password net start "Apache Tomcat"
pause
I do not really understand why the batch file is working properly, but I can not seem to be scheduled or executed by PRTG or Launcher.
Add comment