Article ID: 271362 - Last Review: February 7, 2008 - Revision: 3.0 How to find the short names of servicesThis article was previously published under Q271362 Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows XP and Windows Vista On This PageSUMMARY
This article describes how to determine the short name of a service, which you can use at a command prompt or in a batch file.
MORE INFORMATIONWarning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. You can locate the short service name by means of the graphical user interface (GUI) in Windows 2000 and through the registry in Windows NT 4.0. Also, you can use a script in combination with Windows Management Instrumentation (WMI) with both Windows 2000 and Windows NT 4.0 to output all services, including the display name, the short name, and the current state of the service. WMI is included with Windows 2000, but must be installed in Windows NT 4.0. To download WMI for Windows NT 4.0, visit the following Microsoft Web site: http://download.microsoft.com/download/platformsdk/wmint4/1.5/NT4/EN-US/wmint4.EXE
(http://download.microsoft.com/download/platformsdk/wmint4/1.5/nt4/en-us/wmint4.exe)
Windows 2000 GUI locationMost locations in the Windows 2000 GUI list the display name of a service (for example, Computer Management); however, you can locate the short service name by performing the following steps:
Collapse this table
Finding the Service Name (the Short Name of a Service) in Windows NT 4.0 (in Windows 2000 This Is Not Necessary)In Windows NT 4.0, the short service name is not viewable in the GUI; however, you can use the display name to find the short name by searching the registry. To do so, perform the following steps:
Collapse this table
NOTE: The display or the short service name may be different between Windows NT 4.0 and Windows 2000. For example, in Windows 2000, the Routing and Remote Access service's display name is "Routing and Remote Access" with a short name of "Remoteaccess". In Windows NT 4.0, the display name is "Routing and Remote Access Service" with a short name of "Router". At a command prompt, you can start and stop the Microsoft DNS Server service (NT 4.0) or DNS Server service (Windows 2000) by using the net stop dns&net start dns command. Using a Visual Basic Script in Combination with WMI on Windows 2000 or Windows NT 4.0You can run the following script with the cscript services.vbs command from a command prompt in Windows 2000 and Windows NT 4.0 (after WMI is installed):NOTE: This is an example of a script using WMI and the script should only be used at the command prompt. Copy this sample information into Microsoft Windows Notepad and name the file "Services.vbs": REFERENCESTo obtain the DisplayName or the ServiceKeyName for a service, you can use Sc.exe.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
251192
(http://support.microsoft.com/kb/251192/
)
How to create a Windows service by using Sc.exe
| Article Translations
|
Back to the top
