Difference between revisions of "Enabling / disabling Windows services"
From WPKG | Open Source Software Deployment and Distribution
(Undo revision 9149 by 202.138.120.88 (talk - The space is important, the command will fail otherwise)) |
m (Added info about the space which can cause the command to fail) |
||
Line 19: | Line 19: | ||
− | To disable a service permanently ("Start Type"), you can use the sc command: | + | To disable a service permanently ("Start Type"), you can use the sc command (the space before disabled is necessary): |
sc config <service_name> start= disabled | sc config <service_name> start= disabled |
Latest revision as of 18:41, 30 June 2011
You can use WPKG to start, stop or restart services running on your Windows workstations.
To do it, simply use a net
command.
The following example will restart a service:
net stop <service_name> net start <service_name>
Other possibilities are pausing the service:
net pause <service_name>
And continuing a service that was earlier paused:
net continue <service_name>
To disable a service permanently ("Start Type"), you can use the sc command (the space before disabled is necessary):
sc config <service_name> start= disabled
To list all services that are currently running use net start
from the CLI (command line) without parameters:
net start