Changing windows service display name?

15

7

I would like to change the display name of a windows service that has already been created. I have read online that I can just alter the value in the registry. If I alter it in the registry and then relaunch my services window, the new name does not seem to be reflected. I assume if I restart my computer this new name will be reflected but I need a solution that will show up immediately with out having to restart my computer.

Here is an example:

I launch services.exe and right-click on the service I want to change and click properties. In the properties window I see the service name as service1 and the display name as service1. I go into the registry and navigate to

HKLM\system\CurrentControlSet\services\service1.

In here there is a field called DisplayName that is set to service1. I go and change this value to Some Name. After changing this value I relaunch services and I still see service1. When I go to properties of service1, I still see the display name as service1 and not Some Name.

user972276

Posted 2013-10-09T21:47:17.680

Reputation: 637

Have you tried rebooting? What Windows version are you using? – Doktoro Reichard – 2013-10-09T22:33:34.853

Answers

34

You can do this with the SC command. For example, to rename the Themes service to Theme Manager, open a command prompt with administrator rights. Type

sc config Themes DisplayName= "Theme Manager"

Note the space between the equal sign and the new name. This is mandatory.

If you refresh the services console, you'll see the change. No need to reboot beforehand.

Patrick Seymour

Posted 2013-10-09T21:47:17.680

Reputation: 7 662

1As a side note for others: if the new name contains spaces, it is also mandatory to enclose it in parenthesis (like in the example above), otherwise it won't work. – informatik01 – 2015-05-02T19:53:38.910

Note, this does NOT change the names "sc" uses for future commands. Rather, it only changes how it appears in Services gui. To change the name to use with "sc", use the regedit technique described by @Nikola-Dimitrijevic – macetw – 2017-08-17T20:37:56.407

@macetw Not sure what you mean. It changes the display name of the service, which is what the question was about. The service name is something else entirely. – Patrick Seymour – 2017-08-17T22:26:47.680

It seemed like everywhere I looked, people were saying the SC command could not change the display name of a service so I never went and actually looked at the sc command closer. But, this command worked with flying colors! Thanks so much! – user972276 – 2013-10-10T12:34:31.067

Seconded. This works great! – sws – 2013-11-20T14:29:55.630

2

Even you were close you have done it wrong. :)

First navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services In the LEFT pane, select the Service key you want to rename, press F2 and enter the name you want

If you have enum subkey when you expand main key, just delete it as it will be recreated upon restart

enter image description here

The DisplayName subkey can be changed, but you dont have to do that. Usually you will change it to follow the changed Service name

Now restart the computer

Nikola Dimitrijevic

Posted 2013-10-09T21:47:17.680

Reputation: 3 363