How to set the display name of windows service
If you refresh the services console, you'll see the change. No need to reboot beforehand. Improve this answer. Patrick Seymour Patrick Seymour 8, 27 27 silver badges 33 33 bronze badges. 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! This works great! As 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.
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. It changes the display name of the service, which is what the question was about. The service name is something else entirely. Show 1 more comment. Even you were close you have done it wrong. Usually you will change it to follow the changed Service name Now restart the computer.
Nikola Dimitrijevic Nikola Dimitrijevic 3, 1 1 gold badge 17 17 silver badges 28 28 bronze badges. WIN10Pro you must change the DisplayName key on the right, otherwise the displayname in "services" app is not changed.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. In Visual Studio , you could double click the entry for the service file in the Solution Explorer named "AService" in your case.
In the properties window, just change the entry under "ServiceName". None of the above work for me, so sharing what works actually Go to your file "ProjectInstaller.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How do I change the name of my Windows service? Ask Question. Asked 10 years, 10 months ago.
Active 3 years, 3 months ago. Viewed 68k times. It appears to be the ServiceName property and searching through my solution I found this: namespace SI. Lastly, thank you all for your help. Improve this question. Kasper Hansen.
Kasper Hansen Kasper Hansen 5, 20 20 gold badges 67 67 silver badges 99 99 bronze badges. This is a property of the ServiceInstaller that you can set in the designer. You can also set the DisplayName property — Adriaan Stander.
This might be a dumb question, but where do I do that in Visual Studio? You need to do this at install time because it requires elevated priviliges and you can only assume those at install time. David, how do I do that? I was able to change name compiling service build process then unistalling and installing output exe using InstallUtil.
Add a comment. Active Oldest Votes. Hope this works Improve this answer. Harun Harun 4, 4 4 gold badges 34 34 silver badges 57 57 bronze badges. This is not easy at all. Right click - design. Overview and sign in help. Password reset and recovery. Forgot username. Security and verification codes. Locked or compromised accounts. Account activity and closed accounts. Linked accounts. What is a Microsoft account? Update your profile. Microsoft account More Need more help?
Expand your skills. Get new features first. Was this information helpful? Yes No.
0コメント