Sc getdisplayname |
Applies To: Windows Server 2003 R2,Windows 7,Windows Server 2003 with SP2,Windows Server 2003,Windows Vista,Windows Server 2003 with SP1,Windows Server 2008,Windows Server 2008 R2
Gets the display name associated with a particular service.
For examples of how to use this command, see Examples.
Syntax
Copy Code |
|
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:
Copy Code |
|
sc getdisplayname tapisrv |
Output similar to the following is displayed:
Copy Code |
|
[SC] GetServiceDisplayName SUCCESS |
To get the display name associated with the SHAREDACCESS service, type:
Copy Code |
|
sc getdisplayname sharedaccess |
Output similar to the following is displayed:
Copy Code |
|
[SC] GetServiceDisplayName SUCCESS |
Note |
If sc getdisplayname cannot find the specified service, the following error message is displayed: |
Copy Code |
|
[SC] GetServiceDisplayName FAILED 1060: |