Change service type from command line?

N

Nil

Can I change a service type between Automatic, Manual, and Disabled
from the command line, rather than through the MMC?
 
D

David H. Lipman

From: "Nil" <[email protected]>

| Can I change a service type between Automatic, Manual, and Disabled
| from the command line, rather than through the MMC?

sc config ServiceName start= <boot|system|auto|demand|disabled|error>



sc config
Modifies a service entry in the registry and Service Database.
SYNTAX:
sc config [service name] <option1> <option2>...
CONFIG OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec|adapt|error>
start= <boot|system|auto|demand|disabled|error>
error= <normal|severe|critical|error|ignore>
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
DisplayName= <display name>
password= <password>
 
N

Nil

From: "Nil" <[email protected]>

| Can I change a service type between Automatic, Manual, and Disabled
| from the command line, rather than through the MMC?

sc config ServiceName start= <boot|system|auto|demand|disabled|error>

Thanks. It took me a little while to find the sc.exe utility, but it
looks like this will do just what I want.
 

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