Nerd-cen-tric, adj. 1. Holding the view that technology is the center, object, and norm of all experience.

Restarting a Service

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.

Leave a Reply

You must be logged in to post a comment.

Nerdcentric Twitter Feed