
If you are a fan of tweaking your system and disabling services, you might find that over time your Windows Services list becomes large and unwieldy. It’s easy enough to delete a Windows service using the Command Prompt.
如果您喜歡調整系統并禁用服務,則可能會發現Windows服務列表隨著時間的推移變得龐大而笨拙。 使用命令提示符刪除Windows服務非常容易。
A big warning, though. When you delete a service, it’s gone—and services can be a real pain to get back. We really don’t recommend deleting services at all, unless you’re dealing with a very particular situation like cleaning up after a program uninstalled improperly or rooting out a malware infestation. Typically, just disabling a service is plenty, especially if all you’re really trying to do is tweak your system performance (which probably won’t work as well as you might hope, anyway).? That said, if you do need to delete a service, you just need to find the actual name of that service and then issue a single command from the Command Prompt.
不過,這是一個很大的警告。 刪除服務后,該服務就消失了,而恢復服務可能真是痛苦。 確實,我們根本不建議刪除服務,除非您要處理的是非常特殊的情況,例如在程序卸載不當后進行清理或根除惡意軟件的侵擾。 通常,僅禁用一項服務就足夠了,尤其是如果您真正想做的只是調整系統性能(無論如何,它可能無法如您所希望的那樣工作)。 也就是說,如果確實需要刪除服務,則只需找到該服務的實際名稱,然后從命令提示符處發出單個命令即可。
The techniques we’re covering here should work in pretty much any version of Windows—from XP all the way up through 10.
我們這里介紹的技術幾乎可以在所有Windows版本中使用,從XP一直到10。
第一步:查找您要刪除的服務的名稱 (Step One: Find the Name of the Service You Want to Delete)
The first thing you’ll need to do is identify the full name of the service you want to delete. In our example, we’re using the RetailDemo service—a curious thing that activates a hidden command for changing Windows into a retail service mode (and pretty much erasing all personal docs and resetting your PC to it’s default state), so it’s actually a good example of a service you might not want around.
您需要做的第一件事是確定要刪除的服務的全名。 在我們的示例中,我們使用的是RetailDemo服務,這很奇怪,它激活了一個隱藏命令,用于將Windows更改為零售服務模式(并且幾乎擦除了所有個人文檔并將您的PC重置為默認狀態),因此實際上是您可能不想要的服務的一個很好的例子。
Hit Start, type “services” into the search box, and then click the “Services” result.
單擊開始,在搜索框中鍵入“服務”,然后單擊“服務”結果。

In the “Services” window, scroll down and find the service you’re after. Right-click the service and choose the “Properties” command.
在“服務”窗口中,向下滾動并找到所需的服務。 右鍵單擊該服務,然后選擇“屬性”命令。

In the service’s properties window, copy (or write down) the text to the right of the “Service name” entry.
在服務的屬性窗口中,復制(或寫下)“服務名稱”條目右側的文本。

When you have the service’s name, you can go ahead and close the properties window and the “Services” window.
有了服務的名稱后,就可以繼續并關閉屬性窗口和“服務”窗口。
第二步:刪除服務 (Step Two: Delete the Service)
Now that you have the name of the service you want to delete, you’ll need to open the Command Prompt with administrative privileges to do the deleting.
現在您已經有了要刪除的服務的名稱,您將需要使用管理權限打開命令提示符來進行刪除。
Click Start, and then type “cmd” into the search box. Right-click the “Command Prompt” result, and then choose the “Run as administrator” command.
單擊開始,然后在搜索框中鍵入“ cmd”。 右鍵單擊“命令提示符”結果,然后選擇“以管理員身份運行”命令。

At the Command Prompt, you’ll use the following syntax:
在命令提示符處,將使用以下語法:
sc delete ServiceName
So, to delete the “RetailDemo” service we’re using in our example, we’d type the following text, and then hit Enter:
因此,要刪除我們在示例中使用的“ RetailDemo”服務,我們將鍵入以下文本,然后按Enter:
sc delete RetailDemo

Note: If the service you’re deleting has any spaces in the name, you’ll have to enclose the name in quotes when you type the command.
注意:如果要刪除的服務的名稱中有空格,則在鍵入命令時必須將名稱用引號引起來。
Now, if you use the F5 key to refresh your Services list, you’ll see that the service is gone.
現在,如果您使用F5鍵刷新“服務”列表,您將看到該服務已消失。

Deleting a service in Windows is pretty easy, but we’d again like to caution you to think long and hard before deleting a service, because it’s very difficult to get them back once they’re gone.
在Windows中刪除服務非常容易,但是我們再次提醒您在刪除服務之前要三思而行,因為一旦它們消失,很難將它們找回。
翻譯自: https://www.howtogeek.com/howto/windows-vista/how-to-delete-a-windows-service-in-vista-or-xp/