Discussion Locked

Changing Order Of Services Loading

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I change the order in which services are started upon booting NT 4.0?

5 replies

by dao251

I believe you cannot control that for services, which startup in "Automatic" mode. I'm not sure though :-)

And I cannot imagine why you need that.

NT provides that dependent services start in proper order.

You could simulate that behaviourby playing with HKLM/SYSTEM/CurrentControlSet/Services//DependsOnService
registry keys.

Or, you could msrk the services you want to start in certain order to "Manual" and then start thenm by "net start" command from a batch file.

Cheers,
Dima

by peter ritchie

In Windows NT 3.1 and greater you have the option of creating Service Groups that have a specified load order.
The defined registry key for this is HKLM\System\CurrentControlSet\Control\ServiceGroupOrder.

You can programmaticaly change these values with the ChangeServiceConfig() function (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/hh/winbase/services_5gh3.asp?frame=true) and can be queried with the QueryServiceConfig() function.

Check out http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/hh/winbase/services_5gh3.asp?frame=true for sample usage of ChangeServiceConfig() (not order, unfortunately).

This discussion is closed to new replies.