How to stop/start windows service via batch or cmd
This tutorial describes how to stop/start a windows service via batch or cmd.
1. Find service name
First of all, you need to get the service name, to do this:
- Click windows -> type “services”
- When the “services” window opens, right-click the desired service -> properties, then get the service name as below:
2. Stop service
In order to stop the service via batch script:
- Open cmd as administrator.
- Run this command: NET STOP <SERVICE_NAME>
3. Start service
In order to start the service via batch script:
- Open cmd as administrator.
- Run this command: NET START <SERVICE_NAME>