Open johlju opened 8 years ago
Hi,
You could use the sc.exe tool to configure delayed startup on a service. Example for the DNS service:
"sc.exe Config DNS Start=Delayed-Auto"| iex
This way the GUI will reflect the change without a reboot.
Cheers
I would like to see that we add the option to be able to set the startup type to 'Automatic (Delayed Start)' I propose that we add the value
'AutomaticDelayedStart'
to the parameterStartupType
.To know if a service is set to delayed start the resource has to query the registry.
And to set a resource to delayed start, we need to change that value in the registry to
1
which means 'Automatic (Delayed Start)'. And to remove delayed start we need to set the value to0
which means that the startup type is set to 'Automatic'.