Gets the display name associated with a particular service.

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

Syntax

sc [<ServerName>] getdisplayname [<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.

Examples

To get the display name associated with the TAPISRV service, type:

sc getdisplayname tapisrv

Output similar to the following is displayed:

[SC] GetServiceDisplayName SUCCESS
Name = Telephony 

To get the display name associated with the SHAREDACCESS service, type:

sc getdisplayname sharedaccess

Output similar to the following is displayed:

[SC] GetServiceDisplayName SUCCESS
Name = Internet Connection Sharing (ICS)
Note

If sc getdisplayname cannot find the specified service, the following error message is displayed:

[SC] GetServiceDisplayName FAILED 1060:
The specified service does not exist as an installed service.

Additional references


Converted from CHM to HTML with chm2web Pro 2.85 (unicode)