Managing windows services using sc command

From Notes_Wiki
Revision as of 07:24, 11 June 2023 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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