Export (0) Print
Expand All

Sc getdisplayname

Published: April 17, 2012

Updated: April 17, 2012

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

Gets the display name associated with a particular service.

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

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

 

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.

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)
noteNote
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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft