Changing service properties via Command Prompt/Registry

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
 
W

Wadester

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
 
T

Torgeir Bakken (MVP)

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
 
D

David Wang [Msft]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top