• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

Service Activation Order

Hi there,

How can I set the order of execution of services using the DependOnService, DependOnGroup or Start Key in the registry?

Lets say I want to make sure, service A gets started before service B! Can someone give an example.

The values of those keys are just numbers and I do not know what they mean!


  • 3
  • 2
1 Solution

DependonGroup Reg_MULTI_SZ Service group name [Service group name]
DependonService Reg_MULTI_SZ Service name [Service group name]

Good luck by the way do you have reskit?
os012897Author Commented:
Thanx, for the answer!

I had a look at the registry again:

I figured what I need is the DependOnService key. E.g. the Alerter service uses that key too. All its values are numbers, like "DependOnGroup 4d 4c 6e 30 8e 00 00". I figured that the numbers probably identify the different services that the Alerter service depends upon, right?

But I couldn't find a way how to find out which service corresponds to which number. How can I do that?

In you reponse you wrote:

     DependonService Reg_MULTI_SZ Service name

Is the Reg_MULTI_SZ the ID-number of the service? I could not find any DependOnService Entry where the name of the service would be used, as it seems to be in your example.

Sorry if my questions seems a bit confused but messing around with the registry without any helper-tools is pretty cryptic by itself ;)!

And no, I do not have the reskit.



To find the services in any service group, use Regedit to open HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services.
On the Edit menu, click Find, type the name of the service group, and select only the Data check box. Press F3 to find other services in the service group.
To find the service group and tag number of any service, open the subkey representing the service in \CurrentControlSet\Services. Click Group to find its service group, and click Tag to find its tag number.

he following standard value entries appear in most subkeys representing services in the Services subkey. The content of the subkeys for each service vary depending on the nature of the service, whether the service is Plug and Play, and whether the service is installed on the computer.

Registry path:

                  \Service name

DependOnGroup     REG_MULTI_SZ     Service group name [service group name]

Specifies the service group(s) that must be loaded before this service is loaded. This value entry ensures that prerequisite services are loaded successfully.

DependOnService     REG_MULTI_SZ     Service name  [service group name]

Specifies the service(s) that must be loaded before this service is loaded. This value entry ensures that prerequisite services are loaded successfully.

NB Send me your e-mail address and I'll send you a hlp file
os012897Author Commented:
Hi biyiadeniran,

Thanx again for your answer. It'd be nice if you could send me your help-file to os@cast.uni-linz.ac.at .

One last question:

I the tag-number the number I have to use for "DependOnService"?

Like if I want service A to start before service B and B has a tag-number of "6c" I would write for service A:

DependOnService 6c




PS: Please make a reply in any case, so I can grade with A

sorry my machine crashed yesterday and the file is on it. I'll send it as soon as I fix the problem. I've mailed you the help file
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now