How can I run a service which has status "stopped" using a cmd script?
| ||||
feedback
|
|
You can use
Lists all running services installed on your computer.
Dumps the list of all running services into a file named services.txt in C:.
Lists all stopped services installed on your computer.
Dumps the list of all stopped services into a file named *dis_services.txt* in C:.
Starts a service called [service_name], for example:
Starts the Print Spooler service.
Stops a service called [service_name], for example:
Stops the Print Spooler service. | ||||
|
feedback
|
|
If you're using Powershell then you can use the following commands:
sc doesn't work in powershell straight away as it's aliased to a command called set-content. | |||
|
feedback
|
