How to Add a Dependency to a Windows Service
search cancel

How to Add a Dependency to a Windows Service

book

Article ID: 368301

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

How to add dependency to a Windows Service?

Environment

Windows

Cause

None

Resolution

The Windows Services dependency can be done in a Command Window. Please open Command Windows as Administrator and run the command via the Command Prompt as below. The command is as follows (replace the highlighted sections with the service names retrieved as above):

sc config {service to have the dependency added} depend={service to be dependent on}

For DevTest Services, you can use the below commands:
sc config "DevTest Enterprise Dashboard Service" depend= "IdentityAccessManager Service"
sc config "DevTest Registry Service" depend= "IdentityAccessManager Service"
sc config "DevTest Registry Service" depend= "DevTest Enterprise Dashboard Service"
sc config "DevTest Portal Service" depend= "DevTest Registry Service"

Additional Information

The DevTest Server processes (or services) need to be started in the following sequence:
1. Start Identity and Access Manager.
2. Start the Enterprise Dashboard Server.
3. Start each registry.
4. Start DevTest  Portal.
5. Start the following components in any order:
    - Broker
    - Coordinator server
            . Simulator server that is associated with each coordinator
    - Virtual Service Environment

6. If used on the DevTest Server, start DevTest Workstation.

NOTE: To shut down the server components, use the reverse order.

More information on adding Dependencies for Windows services can be found at How to add dependency to a Windows Service?