Sc qc


Applies To: Windows Server 2008 R2,Windows Server 2008,Windows Server 2003 with SP1,Windows Server 2003,Windows Vista,Windows Server 2003 with SP2,Windows 7,Windows Server 2003 R2

Queries the configuration information for a specified service.

For examples of how to use this command, see Examples.

Syntax


Copy Code

sc [<ServerName>] qc [<ServiceName>] [<BufferSize>]

Parameters

Parameter

Description

<ServerName>

Specifies the name of the remote server on which the service is located. The name must use the Universal Naming Convention (UNC) format (for example, \\myserver). To run SC.exe locally, omit this parameter.

<ServiceName>

Specifies the service name returned by the getkeyname operation.

<BufferSize>

Specifies the size (in bytes) of the buffer. The default buffer size is 1,024 bytes.

/?

Displays help at the command prompt.

Remarks


Copy Code

sc qc ServiceName

Sc can help match up services in the Services node of Microsoft Management Console (MMC) with processes in System Monitor. If the binary name is Services.exe, the service shares the Service Controller process.

The Services.exe program starts all services. To conserve system resources, several Win32 services developed for Windows are written to share the Services.exe process. These services are not listed as separate processes in System Monitor or Task Manager. The same is true of Svchost.exe, a service host process that is shared by many operating services.

There might not be a process for every Win32 service because third-party Win32 services can also be configured to share processes. You can use Sc to get configuration information about these services. If a service does not share its process with other services, however, there will be a process for it in System Monitor when the service is running.

Examples

To query the configuration information for the NEWSRVICE service running on a remote computer called "MyServer," type:


Copy Code

sc qc \\myserver newsrvice

To query the configuration information for the RPCSS service on the local computer, type:


Copy Code

sc qc rpcss

Additional references

Command-Line Syntax Key