#46269 - 2003-10-02 11:48 PM
How to change service startup type
|
Ryan Dao
Fresh Scripter
Registered: 2003-03-09
Posts: 45
|
Hi,
I was wondering if there is a way to change the service startup type. For example, change Automatic Updates service to manually start instead of automatically starting.
Thanks.
|
Top
|
|
|
|
#46270 - 2003-10-02 11:54 PM
Re: How to change service startup type
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
Hi Ryan, use or pick apart ServiceMode()
-Shawn [ 02. October 2003, 23:55: Message edited by: Shawn ]
|
Top
|
|
|
|
#46271 - 2003-10-03 05:04 AM
Re: How to change service startup type
|
Ryan Dao
Fresh Scripter
Registered: 2003-03-09
Posts: 45
|
Thanks for the help. Is there an easier way? Any way to use a command line using a utility?
Thanks,
Ryan
|
Top
|
|
|
|
#46275 - 2003-10-03 05:11 AM
Re: How to change service startup type
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Blasphemer!
Why not use the GUI then!?
|
Top
|
|
|
|
#46278 - 2003-10-03 05:19 AM
Re: How to change service startup type
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Ryan, you can thank Shawn for this one: http://www.petri.co.il/download_free_reskit_tools.htm [ 03. October 2003, 05:20: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#46280 - 2003-10-03 05:49 AM
Re: How to change service startup type
|
Ryan Dao
Fresh Scripter
Registered: 2003-03-09
Posts: 45
|
Thanks Shawn and everyone else for helping. Will try and let everyone know.
|
Top
|
|
|
|
#46282 - 2003-10-04 01:58 AM
Re: How to change service startup type
|
Ryan Dao
Fresh Scripter
Registered: 2003-03-09
Posts: 45
|
Found the registry setting for it.
hklm\system\currentcontrolset\services\servicename\startup, change it to 3 for manual start.
Go to here for more info. http://support.microsoft.com/default.aspx?scid=kb;en-us;248660
Thanks again for everyone's help
|
Top
|
|
|
|
#46283 - 2003-10-04 02:00 AM
Re: How to change service startup type
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Good follow-up Ryan. Doing research is the first step to providing good solutions.
|
Top
|
|
|
|
#46285 - 2003-10-04 02:47 AM
Re: How to change service startup type
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
Well I see Jens pointed you to a UDF that does it via that method already. Here is the MSKB article though for manipulating the Automatic Updates as well as a trimmed down version of Jens UDF.
; Microsoft Knowledge Base Article - 328010
; How to Configure Automatic Updates by Using Group Policy or Registry Settings
; http://support.microsoft.com/?kbid=328010
SetServiceMode(,'Norton AntiVirus Server',2)
? 'Return value for updating key: '+@error+' '+@serror
Function SetServiceMode(optional $RemotePC,$Service,$StartValue)
DIM $SetMode
if len($RemotePC) $RemotePC=iif("\\"=left($RemotePC,2),$RemotePC,"\\"+$RemotePC)+"\" endif
$SetMode=writevalue($RemotePC+'HKLM\SYSTEM\CurrentControlSet\Services\'+$Service,'Start',$StartValue,'REG_DWORD')
EndFunction
|
[ 04. October 2003, 19:21: Message edited by: NTDOC ]
|
Top
|
|
|
|
#46286 - 2003-10-04 03:24 AM
Re: How to change service startup type
|
Ryan Dao
Fresh Scripter
Registered: 2003-03-09
Posts: 45
|
This forum has the best and faster replies of all the forum I've used. Including MS's forum. Thanks again for all the help and hope I can help in the future.
Ryan
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|