Looking for a way to restart a service on a schedule
I need to restart a running service once an hour. The service is not stopped, so the "recovery" option would not work. Is there a way to do this with a scheduler or a third party tool?
October 8th, 2010 12:05pm

You can create a task with the following command (or add these commands to a bat file) and schedule it to run every hour. Net stop “ServiceName” Net start “ServiceName” Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX Blogs - http://blogs.sivarajan.com/ Articles - http://www.sivarajan.com/publications.html Twitter: @santhosh_sivara - http://twitter.com/santhosh_sivara This posting is provided AS IS with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
October 8th, 2010 2:36pm

You can use the "sc" command in a batch file and use the task scheduler to have it run once every hour. for example, > SC servername stop servicename > SC servername start servicenameVisit: anITKB.com, an IT Knowledge Base.
October 8th, 2010 2:39pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics