該命令用於停止和啟動特定的服務。
語法
Net stop/start [servicename]
範例
NET STOP Spooler
上述命令用於停止列印機後台處理程式服務。 以下是上述命令的輸出。
The Print Spooler service is stopping.
The Print Spooler service was stopped successfully.
NET START Spooler
上述命令用於啟動列印機後台處理程式服務。 以下是上述命令的輸出。
The Print Spooler service is starting.
The Print Spooler service was started successfully.