7.11. Viewing the Service Load Order

Problem

You want to view the order in which services load during system startup. You typically don't need to worry about the service load order, but it can be helpful if you are experiencing problems with services that are not starting correctly after reboot. Also, device drivers are treated like services. So by viewing the service load order, you can see the device driver load order as well.

Solution

Using a graphical user interface

Open the Sysinternals LoadOrd (loadord.exe) utility. See Figure 7-1 for an example of the output.

LoadOrd utility

Figure 7-1. LoadOrd utility

Discussion

As I described in Recipe 7.10, Windows supports the concept of service dependencies whereby a service cannot start until the services it depends on have started successfully. Windows also supports the notion of a service load order so that services and groups of services start in a particular order.

A service group is a collection of services that are loaded together at system startup. In Figure 7-1, you can see the group a particular service is in under the Group Name column. The complete list of service groups can be found in the Registry under the following key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GroupOrderList

Not all services are part of a group, but the ones that are load before the ones that aren't. The following registry value contains a list of service groups ...

Get Windows Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.