Batch file for status of service/s, then kill process and finally restart services
Posted on 2009-05-13
I'm implementing a Kaseya Server with Vmware snapshots. When snapshot take in place, service "kserver" didn't respond (it's not possible start, stop or restart service), workaround, seemed to kill process kaseya, then restart service.
Can anyone help me to make a batch file that, in first place check is service kaseya is running or not, and in case of not, kill the process and then restart the service?. The idea is put this batch file in a scheduled task.
Would be interesting use command "sc", instead net start/stop...