Re: Disable Service Using SMS Installer
- From: "David James [MSFT]" <djam@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Jun 2005 19:29:44 -0700
Or you can just use the "sc" command. It is built in to WinXP+
For example, this will disable the SMS Client Service:
"sc config ccmexec start= disabled"
(Of course, no one wants to disable their SMS Client Service!)
--
Thanks,
David James [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
"Terry Matthews" <nospam@xxxxxxxxxxx> wrote in message
news:%23QrVBcccFHA.3912@xxxxxxxxxxxxxxxxxxxxxxx
> Basically if you edit the registry there are a couple keys to help you.
>
> Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
>
> In there look at the various services (names might not look how they show
> up in the Services GUI) and you'll see a value called "Start" with 2-4.
> These values tell the machine what to set the start up as to:
> 2 = Automatic
> 3 = Manual
> 4 = Disabled
>
> In your SMS Installer script just edit the registry for the name you want
> and set that value. I would then put a stop\start service command for
> your service. That should work. If not you may need to do a reboot.
>
> Terry
>
>
> "Derek" <garionb@xxxxxxxxx> wrote in message
> news:%235Rb9FccFHA.2664@xxxxxxxxxxxxxxxxxxxxxxx
>> Hello,
>> Can anyone help me with finding a way to DISABLE a service or set a
>> service to MANUAL using SMS INSTALLER? Any help would be appreciated,
>> thanks.
>>
>> Derek
>>
>
>
.
- References:
- Disable Service Using SMS Installer
- From: Derek
- Re: Disable Service Using SMS Installer
- From: Terry Matthews
- Disable Service Using SMS Installer
- Prev by Date: Re: Execute registry setting if SQL found
- Next by Date: Re: Execute registry setting if SQL found
- Previous by thread: Re: Disable Service Using SMS Installer
- Next by thread: SMS Installer / Wise 9 / Package Studio...
- Index(es):