Service startup from the command line

S

Steve

I want to install a service on an xp pc now and set it as
disabled with the idea that I may later need it. Is there
a way from the command line to change it to start
automatically? Net Start will start a service, but not if
it is disabled and I didn't see any parameters with net
start to change a service's startup config.

Thanks,
Steve
 
D

Doug

I don't know about a command line entry, but use your Admin Tools,
Services, you can Auto, Manual, Disable, Start and Run everything from
here
Cheers BePaw

: I want to install a service on an xp pc now and set it as
: disabled with the idea that I may later need it. Is there
: a way from the command line to change it to start
: automatically? Net Start will start a service, but not if
: it is disabled and I didn't see any parameters with net
: start to change a service's startup config.
:
: Thanks,
: Steve
 
T

Torgeir Bakken (MVP)

Steve said:
I want to install a service on an xp pc now and set it as
disabled with the idea that I may later need it. Is there
a way from the command line to change it to start
automatically? Net Start will start a service, but not if
it is disabled and I didn't see any parameters with net
start to change a service's startup config.

Hi

You can use %windir%\System32\SC.exe for this. Look up SC.exe in WinXP's "Help
and Support Center".

To set e.g. the Fax service to Automatic:

sc.exe config "fax" start= auto

(note the space behind the = character)
 

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