These commands are used to stop and start a particular service.
net start <service-name>
net stop <service-name>Example
The following command is used to stop the printer spooler service.
net stop spoolerThe 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 spoolerThe Print Spooler service is starting.
The Print Spooler service was started successfully.