Batch Script Net Stop and Net Start
Net Stop and Net Start
These commands are used to stop and start a particular service.
Syntax
net start <service-name>
net stop <service-name>
Example
The following command is used to stop the printer spooler service.
net stop spooler
The Print Spooler service is stopping.
The Print Spooler service was stopped successfully.
The following command is used to start the printer spooler service.
net start spooler
The Print Spooler service is starting.
The Print Spooler service was started successfully.