Automated Service Restart in Windows Server 2003

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

+5
source share
1 answer

Place the following commands in a batch or cmd file and use the window scheduler to run it according to your desired schedule.

net stop <service_name>
net start <service_name>
+11
source

All Articles