Changing service properties via Command Prompt/Registry

  • Thread starter Thread starter AndreB
  • Start date Start date
A

AndreB

How I set a Service start automatic or manual without the
MMC? I need to do this via the command prompt or the
registry.

Thank you
 
AndreB [[email protected]] posted:
How I set a Service start automatic or manual without the
MMC? I need to do this via the command prompt or the
registry.

Thank you

You can use SC.EXE from the resource kit:

sc config MyService start= demand
[SC] ChangeServiceConfig SUCCESS

sc config MyService start= auto
[SC] ChangeServiceConfig SUCCESS

Note the space after the equals sign. You can use this locally or
remotely.

ws
 
Wadester said:
You can use SC.EXE from the resource kit:

sc config MyService start= demand
[SC] ChangeServiceConfig SUCCESS

sc config MyService start= auto
[SC] ChangeServiceConfig SUCCESS

Hi

Many of the ResKit utilities, including SC.EXE are available free at:

ftp://ftp.microsoft.com/reskit/win2000/

and

http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp

More about SC here:
Sc.exe: Service Controller Tool
http://www.tburke.net/info/reskittools/topics/sc.htm
 
I use SC.EXE, available in the System32 directory from Windows 2000 onward.

The syntax of SC.EXE is a bit arcane and the spaces/characters must be
exact. It must be:
"start=" <space> "demand"
"start=" <space> "auto"

SC CONFIG "servicename" start= demand

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
How I set a Service start automatic or manual without the
MMC? I need to do this via the command prompt or the
registry.

Thank you
 
Back
Top