Start, stop or restart a Windows service from command prompt


If you manage Windows Services and are comfortable working from the command line then you can use it to easily start, stop, pause or restart any service from an elevated command prompt or as part of a convenient script/batch file.

Stopping a service

To start a service, run: net stop service-name. Where service-name is the name of the service.

For example, to stop the Print Spooler service (spooler) run:

net stop spooler

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>net stop spooler
The Print Spooler service is stopping.
The Print Spooler service was stopped sucessfully.

C:\Windows\system32>

Starting a service

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>net start spooler
The Print Spooler service is starting.
The Print Spooler service was started sucessfully.

C:\Windows\system32>

Restarting a service

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>net stop spooler && netstart spooler
The Print Spooler service is stopping.
The Print Spooler service was stopped sucessfully.

The Print Spooler service is starting.
The Print Spooler service was started sucessfully.

C:\Windows\system32>