i use for change Service Start Type from code:
SimpleSC::SetServiceStartType "wuauserv" "2" ;automatic SimpleSC::SetServiceStartType "wuauserv" "3" ;manual SimpleSC::SetServiceStartType "wuauserv" "4" ;disabled
thanks
8 posts
SimpleSC::SetServiceStartType "wuauserv" "2" ;automatic SimpleSC::SetServiceStartType "wuauserv" "3" ;manual SimpleSC::SetServiceStartType "wuauserv" "4" ;disabled
Thanks i read this.Originally Posted by th_mi View PostCheck out this:
http://blogs.technet.com/b/askperf/a...tic-start.aspx
when i use from:Originally Posted by jpderuiter View PostHow about SimpleSC::SetServiceDelayedAutoStartInfo?
SimpleSC::SetServiceDelayedAutoStartInfo "wuauserv" "5" Pop $0 MessageBox MB_OK "$0"
delayed_autostart - The delayed auto-start setting of an auto-start serviceBTW: please don't use exclamation marks, as it's very annoying, certainly when it turns out you didn't read the manual good enough...
- 0 - The service will be started during system boot.
- 1 - The service will be started after other auto-start services are started plus a short delay
Thanks mr jpderuiterOriginally Posted by jpderuiter View PostWhy do you use 5 as a parameter?
Only 0 and 1 are supported...BTW: please don't use exclamation marks, as it's very annoying, certainly when it turns out you didn't read the manual good enough...
Did you reboot your PC?Originally Posted by r2du-soft View Postmy service is start and Start type in automatic (delayed start)
Originally Posted by MSDN;http://msdn.microsoft.com/en-us/library/windows/desktop/ms685155(v=vs.85).aspxThe change takes effect the next time the system is started.
ooooooOriginally Posted by jpderuiter View PostSo, what is not working?
Rereading your post it says that it's working😁id you reboot your PC?
MSDN says you should
SimpleSC::SetServiceStartType "wuauserv" "2" ;automatic
SimpleSC::SetServiceDelayedAutoStartInfo "wuauserv" "1"
SimpleSC::SetServiceStartType "wuauserv" "2" ;Set Automatic SimpleSC::SetServiceDelayedAutoStartInfo "wuauserv" "1" ;Set Automatic To Delay Start