Batch file to restart a service. Windows

Tony picture Tony · Dec 22, 2011 · Viewed 127.8k times · Source

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

Answer

Ry- picture Ry- · Dec 22, 2011
net stop <your service> && net start <your service>

No net restart, unfortunately.