Difference between revisions of "Managing windows services using sc command"

From Notes_Wiki
(Created page with "Home > Windows > Windows Desktop Tools or Utilities > Managing windows services using sc command Normally we can go to Services option in control panel (or under computer management) to look at status of various services and start/stop them. However there is also option to start/stop service via commandline. =Finding name of service= Look at servicename in properties of service when opened using services under control panel =Start service fr...")
 
m
 
Line 15: Line 15:


=Find services dependent on current service=
=Find services dependent on current service=
We can find dependent services via registry https://www.partitionwizard.com/clone-disk/error-1068.html
==Registry option==
We can find dependent services via registry (See https://www.partitionwizard.com/clone-disk/error-1068.html ) by going to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > <service-name> and looking at value of "DependOnService"
 
==sc command option==
Other option is to use:
Other option is to use:
<pre>
<pre>

Latest revision as of 07:24, 11 June 2023

Home > Windows > Windows Desktop Tools or Utilities > Managing windows services using sc command

Normally we can go to Services option in control panel (or under computer management) to look at status of various services and start/stop them. However there is also option to start/stop service via commandline.

Finding name of service

Look at servicename in properties of service when opened using services under control panel

Start service from command-line

To start service use:

sc start <service-name>

Refer:

Find services dependent on current service

Registry option

We can find dependent services via registry (See https://www.partitionwizard.com/clone-disk/error-1068.html ) by going to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > <service-name> and looking at value of "DependOnService"

sc command option

Other option is to use:

sc enumdepend <service-name>


Learn more about on sc command from:


Home > Windows > Windows Desktop Tools or Utilities > Managing windows services using sc command