Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Batch file to restart a service. Windows [closed]

How can I restart a windows service using a .bat file? I am on windows server.

like image 405
Tony Avatar asked Dec 22 '11 17:12

Tony


People also ask

How do I automate a Windows service restart?

From the desktop, click Start > Control Panel. Double-click Administration Tools. Double-click NetIQ Operations Center Auto-Restart Service. The Auto-Restart service automatically starts when Windows starts.


1 Answers

net stop <your service> && net start <your service> 

No net restart, unfortunately.

like image 149
Ry- Avatar answered Oct 13 '22 17:10

Ry-