undefined [object Object]
{}

Our Brands

Welcome to the Schneider Electric Website

Welcome to our website.
How can we help you today?
How to add a dependency to a service
Issue
No existing user interface to add a dependency to a service once created.

Product Line
Any software that uses Windows Services

Environment
Windows Server 2008
Windows Server 2012
Windows Server 2016
Windows 7

Cause
A user wants to add a dependency to an existing service.

Resolution
Steps in this article require knowing the service name.
This can be found in services.msc by right clinking on the desired service and selecting properties.
The name desired is the field "Service name"

1) Open a command prompt as administrator.

2) To list current dependencies, type the following command where ServiceA is the name of the service you want to add a dependency:
sc qc ServiceA

3) To add multiple dependencies, type the following command where Service B,C,D are services to add as a dependency for ServiceA:
sc config ServiceA depend= ServiceB/ServiceC/ServiceD

The command above means that ServiceA will not start until ServiceB, ServiceC, and ServiceD have all started. If you stop any of ServiceB, ServiceC, or ServiceD, ServiceA will stop automatically.

4) To remove all dependencies, type the following command:
sc config ServiceA depend= /

 

Schneider Electric UK

Did this answer your question?

100% of people found this helpful

Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
move-arrow-top
Your browser is out of date and has known security issues.

It also may not display all features of this website or other websites.

Please upgrade your browser to access all of the features of this website.

Latest version for Google Chrome, Mozilla Firefox or Microsoft Edgeis recommended for optimal functionality.
Your browser is out of date and has known security issues.

It also may not display all features of this website or other websites.

Please upgrade your browser to access all of the features of this website.

Latest version for Google Chrome, Mozilla Firefox or Microsoft Edgeis recommended for optimal functionality.