Below is an example how you can restart a service on one more many systems using Script Zombie as the controlling application:
@echo off
Echo.
Echo Remotely Restart a Service
Echo ————————–
sc \\%1 stop servicename
sc \\%1 start servicename
In this example we use SC.exe (Service Control) to first stop the service and then restart it. In this case %1 is the hostname passed by Script Zombie to the batch we are spawning.