Configuring a Service Using SC

The Platform SDK contains a command-line utility, SC.EXE, that can be used to query or modify the database of installed services. Its commands correspond to the functions provided by the SCM. The syntax is:

sc ServerName [command] ServiceName

ServerName
Optional server name. Use the form \\ServerName.
Command
query
config
qc
delete
create
GetDisplayName
GetKeyName
EnumDepend
ServiceName
The name of the service, as specified when it was installed.