Skip to content
Search

Sc

lastmod 2018-08-17created 2015-01-272 edits

Sc.exe makes it easy to develop services for Windows. Sc.exe, provided in the Resource Kit, implements calls to all of the Windows service control API (application programming interface) functions. You can set the parameters for these functions by specifying them on the command line. Sc.exe also displays service status and retrieves the values stored in the status structure fields. Because the tool also lets you specify the name of a remote computer, you can call service API functions or view service status structures on a remote computer.

Sc.exe also lets you call service control API functions and change their parameters from the command line. The advantage is that you can easily create or configure service information in the registry and the Service Control Manager database. You don't need to configure a service by manually creating entries in the registry and then restarting the computer so that the Service Control Manager updates its database.

Syntax

SC on Windows is a command-line program used to communicate with the Service Control Manager and services.

sc <서버> [명령어] [서비스 이름] <옵션1> <옵션2>...

How to use

sc GetKeyName [서비스명]
Gets the service key name.
sc delete [서비스명]
Removes a service. (Must be run with administrator privileges)

See also

Favorite site

References


  1. Sc_windows_service.pdf ↩