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= /
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= /
게시 대상: 슈나이더 일렉트릭 Korea
도움이 필요하신가요?
제품 선택기
애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.
견적 받기
영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.
구매처
해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.
지원 센터
한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.