Search code examples
batch-filewindows-server-2003

Batch file to restart a service. Windows


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


Solution

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

    No net restart, unfortunately.