Automate services restart in windows server 2003

batty picture batty · Aug 3, 2011 · Viewed 9.7k times · Source

I have a Jboss service in Windows server 2003. Is there a way to schedule the service to restart automatically on a daily basis?

Answer

helios picture helios · Aug 4, 2011

Put the following commands in a batch or cmd file and use windows scheduler to trigger it at desired schedule.

net stop <service_name>
net start <service_name>