To change the boot order of the Windows service, you can modify the WINDOW registry. Registration information of any Windows service can be found under the hkey_local_machine / system / currentcontrolset / service /
Group value: A value of a REG_SZ type. It is used to describe the service that belongs to the service group. If the service does not have this, it does not belong to any service group, and the system will default to load it after all the service starts.
TAG value: A value of a REG_DWORD type. It is used to describe the logo of the service. Every service in the service group is assigned a unique identifier. The registry arranged by the arrangement of the service group's service identifier, the service of a service in the same service group has been successfully described.
So, how to change the service's startup order, now divided into two steps, one, change the order of startup of the service group. The second is: Change the start of the service in the service group. Let's introduce the first step: The HKEY_LOCAL_MACHINE / SYSTEM / CURRENTCAL_MACHINE / SYSTEM / CURRENTCONTROLSET / Control / ServiceGroupOrder key saves information indicating the service group starting order. Each service group is a string that represents the order in which the service group is loaded in the last position of the string in the value. To change the loading order of the service group, you can change their location. Method: Use regedit32.exe (not, regedit.exe because, after double-click the List value here, you can only see the sixteen-based data, not to modify.) Open this value, this is a character editing environment, change The order of the group inside, then determine the change. The order of the service group is set. Step 2: HKEY_LOCAL_MACHINE / System / CurrentControlSet / Control / GroupOrderList key There are information on each service startup sequence in each service group. Each service group information is saved for a value of a REG_BINARY type, such as the Pointer Port Services Group value of 030000000200000001000000030000000. Here, in order to facilitate observation, we handle it to 03000000 02000000 01000000 030000000 It means that the Pointer Port service group has three services, the TAG value is 2 service first load, then the TAG value is 1 service, the last is the service of the TAG value 3 service Loading (the order of information interpretation is from left to right). To change the loading order in the group, you can edit this binary string.
In addition, we can also pass
ChangeServiceConfig API
or
Sc.exe
program(
Windows 2000 Resource Kit
The tool in the package is to change the service loading order. It will not be fine here.