Changing a service startup type can be crucial after installing or configuring the service.
PowerShell comes with an easy way to do so:
Set-Service –Name theservice –Computer thecomputer –StartupType “selectedType”
Where selectedType value can be:
Unfortunately, there is no support for the automatic (delayed start). To support the automatic (delayed start), you need to create a REG_DWORD value called DelayedAutoStart under HKLM\System\CurrentControlSet\Services\. A simple way to do so would be:
Set-ItemProperty -Path "Registry::HKLM\System\CurrentControlSet\Services\theservice" -Name "DelayedAutostart" -Value 1 -Type DWORD