Name

scRK

Synopsis

sc [\\server] command service

Obtain detailed information or manage system services.

Process-related commands (Start, Stop, Pause, and Continue) change the state of the specified server’s processes.

Query commands such as the following return various pieces of information about the service: GetDisplayName (the service’s descriptive name), Qdescription (the service description), GetKeyName (the associated registry key), EnumDependencies (list-dependency information), Query and QueryEx (the current status is basic and detailed), Qc (the configuration settings), Qfailure (the action taken on process termination), and SDShow (show the service descriptor in SDDL format).

Several commands may be used to configure or reconfigure a service: Create (add a new service), Delete (remove a service), Config (change settings), Description (set description), Failure (specify actions on failure/process termination), and SDSet (specify security descriptor).

Finally, the form:

sc boot ok | bad

may be used to specify whether the most recent restart configuration is saved as the last known good configuration.

Get Windows 2000 Commands Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.