Sc getdisplayname
Applies To: Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7, Windows Server 2003 with SP2, Windows Server 2003 R2, Windows Server 2008 R2, Windows Server 2012, Windows Server 2003 with SP1, Windows 8
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.