{"id":10241,"date":"2021-05-10T00:01:03","date_gmt":"2021-05-10T07:01:03","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=10241"},"modified":"2026-04-13T14:27:16","modified_gmt":"2026-04-13T21:27:16","slug":"change-service-name","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/windows-services\/change-service-name\/","title":{"rendered":"Q&#038;A: How do I Change the Name of my Windows Service?"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"\/blog\/images\/qa-rename-windows-service.webp\" title=\"How do I Change the Name of my Windows Service\" alt=\"How do I Change the Name of my Windows Service\" border=\"0\" width=\"380\" height=\"160\" \/><\/div>\n<div class=\"blog-qa-question-box\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.coretechnologies.com\/images\/quotes-transparent-21x21.png\" width=\"21\" height=\"21\">&nbsp;&nbsp;We manage a third-party package that installs a Windows Service with a generic name. I keep having to explain what it means to my team\/customers, which can be a pain. How do I change the name of the service to include our company name?<\/p>\n<p align=\"right\">&mdash; Garth P<\/p>\n<\/div>\n<p>Hi Garth.<\/p>\n<p>A service actually has two names &mdash; the &#8220;Service Name&#8221; and the &#8220;Display Name&#8221;. <\/p>\n<p>Both names are prominently displayed in the <a href=\"\/blog\/windows-services\/essential-tools-windows-services-msc\/\">Services<\/a> utility:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/windows-service-names.png\" class=\"zoomPopup\" title=\"Windows Service Names\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/windows-service-names.png\" title=\"Windows Service Names (click to enlarge)\" alt=\"Windows Service Names\" border=\"0\" \/><\/a><\/div>\n<hr class=\"blog-section\">\n<div style=\"width:100%;margin-bottom:30px;\">\n<div style=\"margin:0px;float:right;\"><a href=\"#top\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.coretechnologies.com\/images\/top.jpg\" border=\"0\" width=\"50\" height=\"18\" title=\"Go to the top\" alt=\"\"><\/a><\/div>\n<\/div>\n<h2 class=\"blog-caption\">The Service Name<\/h2>\n<p>The Service Name is the unique identifier of the service. As a result, no two services can have the same Service Name (even with differing case).<\/p>\n<p>And Windows restricts the Service Name in a couple other ways too, specifically:<\/p>\n<ol>\n<li>\n<p>Its maximum length is 256 characters.<\/p>\n<\/li>\n<li>\n<p>Forward-slash (\/) and back-slash (\\) characters are not permitted.<\/p>\n<\/li>\n<\/ol>\n<p>So the Service Name is the &#8220;real&#8221; name of the Windows Service. <\/p>\n<p>All command line programs &mdash; including the built-in <a href=\"\/blog\/windows-services\/essential-tools-for-windows-services-net-command\/\">NET<\/a> and <a href=\"\/blog\/windows-services\/essential-tools-windows-services-sc-exe\/\">SC<\/a> utilities &mdash; will accept the Service Name as an identifier of the service. And the Service Name identifies the service in the Windows Registry (in <span class=\"break-long-words\">HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services<\/span>).<\/p>\n<p>However, because Service Names are used in command line operations, they tend to be terse, technical and downright cryptic. To illustrate, here the Service Names of five important services installed on Windows 10:<\/p>\n<ol>\n<li>\n<p>wuauserv<\/p>\n<\/li>\n<li>\n<p>W32Time<\/p>\n<\/li>\n<li>\n<p>ProfSvc<\/p>\n<\/li>\n<li>\n<p>Wlansvc<\/p>\n<\/li>\n<li>\n<p>lmhosts<\/p>\n<\/li>\n<\/ol>\n<p>Only the Windows OS geeks among us will be able to guess what those services do! \ud83d\ude42<\/p>\n<hr class=\"blog-section\">\n<div style=\"width:100%;margin-bottom:30px;\">\n<div style=\"margin:0px;float:right;\"><a href=\"#top\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.coretechnologies.com\/images\/top.jpg\" border=\"0\" width=\"50\" height=\"18\" title=\"Go to the top\" alt=\"\"><\/a><\/div>\n<\/div>\n<h2 class=\"blog-caption\">The Display Name<\/h2>\n<p>To counteract the caginess of the Service Name, the Display Name records a &#8220;friendlier&#8221; value, mainly for user interface programs to identify the service. For example, here are the corresponding Display Names of the services listed above:<\/p>\n<ol>\n<li>\n<p>Windows Update<\/p>\n<\/li>\n<li>\n<p>Windows Time<\/p>\n<\/li>\n<li>\n<p>User Profile Service<\/p>\n<\/li>\n<li>\n<p>WLAN AutoConfig<\/p>\n<\/li>\n<li>\n<p>TCP\/IP NetBIOS Helper<\/p>\n<\/li>\n<\/ol>\n<p>More meaningful, right? When picking from a list, it&#8217;s almost always better to show the Display Name instead of the Service Name. That&#8217;s what the Services utility does.<\/p>\n<p>Note that the length of the Display Name is also limited to 256 characters but all characters (including forward-slash and back-slash) are allowed. <\/p>\n<p>And perhaps surprisingly, there is no issue with two services having the same Display Name. However, that can be troublesome for lists that rely on Display Name, as we see here with Services:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/services-with-same-display-name.png\" class=\"zoomPopup\" title=\"Two service with the same Display Name\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/services-with-same-display-name.png\" title=\"Two service with the same Display Name (click to enlarge)\" alt=\"Two service with the same Display Name\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<p>So which name would you like to change? The Service Name or the Display Name? Or both?<\/p>\n<hr class=\"blog-section\">\n<div style=\"width:100%;margin-bottom:30px;\">\n<div style=\"margin:0px;float:right;\"><a href=\"#top\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.coretechnologies.com\/images\/top.jpg\" border=\"0\" width=\"50\" height=\"18\" title=\"Go to the top\" alt=\"\"><\/a><\/div>\n<\/div>\n<h2 class=\"blog-caption\">How to change the Service Name<\/h2>\n<p>Unfortunately Microsoft has not provided a great way (i.e. an API) for changing the Service Name. No operating system tools will allow you to change that value &mdash; not SC, Services or any other application.<\/p>\n<p>However it is possible to adjust the Service Name &mdash; provided that you don&#8217;t mind working with the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Windows_Registry\" target=\"_blank\" rel=\"noopener\">Windows Registry<\/a>.<\/p>\n<p>To change the Service Name:<\/p>\n<ol>\n<li>\n<p>Open the Registry Editor.<\/p>\n<p>To do so, press the <b>Windows + R<\/b> keys to open the <b>Run<\/b> window, and then type <b>regedit<\/b>.<\/p>\n<\/li>\n<li>\n<p>On the left, navigate to the section where Windows Services are recorded:<\/p>\n<blockquote><p><b>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\<\/b><\/p><\/blockquote>\n<p>Open the <b>Services<\/b> key to reveal all the services installed on your computer. The list is sorted alphabetically by Service Name:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/regedit-services-key.png\" class=\"zoomPopup\" title=\"Registry Editor: Services key\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/regedit-services-key.png\" title=\"Registry Editor: Services key (click to enlarge)\" alt=\"Registry Editor: Services key\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<\/li>\n<li>\n<p>Find and highlight your service in the list.<\/p>\n<\/li>\n<li>\n<p>Right-click the entry and choose <b>Rename<\/b>:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/regedit-rename-service.png\" class=\"zoomPopup\" title=\"Registry Editor: Rename the service\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/regedit-rename-service.png\" title=\"Registry Editor: Rename the service (click to enlarge)\" alt=\"Registry Editor: Rename the service\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<\/li>\n<li>\n<p>Enter the new name. Remember: limit the length to 256 characters; forward-slashes and back-slashes are not allowed.<\/p>\n<\/li>\n<li>\n<p>Reboot your computer. The new Service Name will not take effect until Windows restarts.<\/p>\n<\/li>\n<\/ol>\n<hr class=\"blog-section\">\n<div style=\"width:100%;margin-bottom:30px;\">\n<div style=\"margin:0px;float:right;\"><a href=\"#top\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.coretechnologies.com\/images\/top.jpg\" border=\"0\" width=\"50\" height=\"18\" title=\"Go to the top\" alt=\"\"><\/a><\/div>\n<\/div>\n<h2 class=\"blog-caption\">How to change the Display Name<\/h2>\n<p>Here are a three ways to change a service&#8217;s Display Name.<\/p>\n<h3 class=\"blog-caption\">1. Using the SC command<\/h3>\n<p>Run this command from an <a href=\"\/WindowsServices\/FAQ.html#ElevatedPrompt\">elevated command prompt<\/a>:<\/p>\n<div class=\"code-box\">\nsc config &lt;SERVICE-NAME&gt; DisplayName= &quot;Your new display name&quot;\n<\/div>\n<p>For example, we have updated the Display Name of the Spooler service:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/spooler-service-display-name-updated.png\" class=\"zoomPopup\" title=\"Spooler service Display name updated\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/spooler-service-display-name-updated.png\" title=\"Spooler service Display name updated (click to enlarge)\" alt=\"Spooler service Display name updated\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<h3 class=\"blog-caption\">2. With PowerShell Set-Service<\/h3>\n<p>If you prefer PowerShell, the <a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.management\/set-service\" target=\"_blank\" rel=\"noopener\">Set-Service cmdlet<\/a> will do the trick:<\/p>\n<div class=\"code-box\">\nSet-Service -Name &lt;SERVICE-NAME&gt; -DisplayName &quot;Your new display name&quot;\n<\/div>\n<p>As you can see, PowerShell works just as smoothly as SC:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/spooler-service-display-name-updated-powershell.png\" class=\"zoomPopup\" title=\"Spooler service Display name updated with PowerShell\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/spooler-service-display-name-updated-powershell.png\" title=\"Spooler service Display name updated with PowerShell (click to enlarge)\" alt=\"Spooler service Display name updated with PowerShell\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<p>However, be sure to run from a PS prompt with administrative rights, to avoid the dreaded &#8220;access denied&#8221; error.<\/p>\n<h3 class=\"blog-caption\">3. Updating the service&#8217;s registry key<\/h3>\n<p>Finally, you can roll up your sleeves and modify the registry value directly. <\/p>\n<p><b>DisplayName<\/b> is a REG_SZ (string) value contained in the service&#8217;s registry key:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/spooler-service-display-name-registry.png\" class=\"zoomPopup\" title=\"Registry: Spooler service Display Name\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/spooler-service-display-name-registry.png\" title=\"Registry: Spooler service Display Name (click to enlarge)\" alt=\"Registry: Spooler service Display Name\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<p>Double-click the &#8220;DisplayName&#8221; to set a new value:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/edit-displayname-value.png\" class=\"zoomPopup\" title=\"Edit DisplayName\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/edit-displayname-value.png\" title=\"Edit DisplayName (click to enlarge)\" alt=\"Edit DisplayName\" border=\"0\" \/><\/a><\/div>\n<p>The new value will take effect after a reboot.<\/p>\n<p style=\"margin-top:30px\">\nBest of luck with your customers!\n<\/p>\n<div style=\"margin-top:30px\" align=\"center\">\n<div class=\"cta-button-1\">\n<table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n<tbody>\n<tr>\n<td align=\"center\"><a href=\"\/blog\/tag\/windows-services-2\/\" title=\"More about Windows Services\"><span><nobr>Read more about Windows Services\u2026<\/nobr><\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/windows-services\/non-admins-control-services-remotely\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: Why Can&#039;t Non-Admins Start\/Stop Windows Services Remotely?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/remote-access-check-exemption-list-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: Why Can&#039;t Non-Admins Start\/Stop Windows Services Remotely?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/windows-services\/profsvc\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Essential Windows Services: User Profile Service \/ ProfSvc\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/user-profile-service-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Essential Windows Services: User Profile Service \/ ProfSvc<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/servicetray\/version-5-1-released\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"ServiceTray 5.1: Improvements to Help you Control any Windows Service from a Taskbar Icon\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/new-release-2-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">ServiceTray 5.1: Improvements to Help you Control any Windows Service from a Taskbar Icon<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;We manage a third-party package that installs a Windows Service with a generic name. I keep having to explain what it means to my team\/customers, which can be a pain. How do I change the name of the service to &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/windows-services\/change-service-name\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":10398,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[250,119,131,132,139,249,251,196],"class_list":["post-10241","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-services","tag-display-name","tag-powershell","tag-regedit","tag-registry","tag-sc-exe","tag-service-name","tag-set-service","tag-windows-services-2"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/10241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=10241"}],"version-history":[{"count":19,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/10241\/revisions"}],"predecessor-version":[{"id":13442,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/10241\/revisions\/13442"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/10398"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=10241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=10241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=10241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}