Post by T Post by VanguardLH
I fixed an issue a guy had by changing a service that started at
boot to "delayed start". Seems too much other junk was happening
at the same time.
He does not need the service to run for about 10 hours after he
reboots and those that call on the service bitch if I set the
service to "manual".
Question: "services" did not give me the option of saying how long
I wanted the delay. Is there a way to do this in the registry?
Why not use Task Scheduler? Have it run the 'sc.exe' command to start
or stop services. You'll need to get the service name. One way is to
run 'sc.exe query'. You want the SERVICE_NAME value (string).
That is an idea. Thank you!
Post by VanguardLH
Better check if the service has any dependencies. Run 'services.exe',
select the service, and look at the Dependencies tab. Those services
have to be loaded AND ready before you can load a dependent service.
I did that. There are no dependencies.
Do you know how to delay it in the registry?
Don't understand what you are asking. Task Scheduler can delay a
program at several increments. Not knowing under what conditions your
user wants to initiate when to start timing when to start a service, and
assuming it is timed from when they choose to login, you can create a
scheduled task that initiates on login but is delayed up to 30 seconds,
1 minute, 30 minutes, 1 hour, 8 hours, 1 day. Although you said the
user wanted to delay startup by 10 hours, 8 hours seems close enough.
If you meant setting a service's definition for Delayed Start and then
defining how long is the delay, I've never bothered to look into that.
From a quick search, looks like Delayed Start happens 2 minutes after
the last Automatic service has been requested to start (just the request
to start the service, not when it is ready). Dependencies have to be
taken care of, too, so the chain will effect the service load order.
In another article, someone claimed the following defines the delay
enable and delay time:
Data name: DelayedAutostart (0 = disabled, 1 = enabled)
Data name (DWORD 32bit): AutoStartDelay (in [milli]seconds)
My guess is the delay is measured after the last request for Automatic
startup (i.e., all dependencies met before submit the automatic start
request to a service). Delayed Start is supposed to start after the
last Automatic started service. I'd have to do more research to
determine the data type for the DelayedAutostart item and if
AutoStartDelay is measured in seconds or milliseconds. I'll let you do