如何在Windows 7、8、10,Vista或XP中删除Windows服务
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.
如果您喜歡調(diào)整系統(tǒng)并禁用服務(wù),則可能會(huì)發(fā)現(xiàn)Windows服務(wù)列表隨著時(shí)間的推移變得龐大而笨拙。 使用命令提示符刪除Windows服務(wù)非常容易。
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.
不過,這是一個(gè)很大的警告。 刪除服務(wù)后,該服務(wù)就消失了,而恢復(fù)服務(wù)可能真是痛苦。 確實(shí),我們根本不建議刪除服務(wù),除非您要處理的是非常特殊的情況,例如在程序卸載不當(dāng)后進(jìn)行清理或根除惡意軟件的侵?jǐn)_。 通常,僅禁用一項(xiàng)服務(wù)就足夠了,尤其是如果您真正想做的只是調(diào)整系統(tǒng)性能(無論如何,它可能無法如您所希望的那樣工作)。 也就是說,如果確實(shí)需要?jiǎng)h除服務(wù),則只需找到該服務(wù)的實(shí)際名稱,然后從命令提示符處發(fā)出單個(gè)命令即可。
The techniques we’re covering here should work in pretty much any version of Windows—from XP all the way up through 10.
我們這里介紹的技術(shù)幾乎可以在所有Windows版本中使用,從XP一直到10。
第一步:查找您要?jiǎng)h除的服務(wù)的名稱 (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.
您需要做的第一件事是確定要?jiǎng)h除的服務(wù)的全名。 在我們的示例中,我們使用的是RetailDemo服務(wù),這很奇怪,它激活了一個(gè)隱藏命令,用于將Windows更改為零售服務(wù)模式(并且?guī)缀醪脸怂袀€(gè)人文檔并將您的PC重置為默認(rèn)狀態(tài)),因此實(shí)際上是您可能不想要的服務(wù)的一個(gè)很好的例子。
Hit Start, type “services” into the search box, and then click the “Services” result.
單擊開始,在搜索框中鍵入“服務(wù)”,然后單擊“服務(wù)”結(jié)果。
In the “Services” window, scroll down and find the service you’re after. Right-click the service and choose the “Properties” command.
在“服務(wù)”窗口中,向下滾動(dòng)并找到所需的服務(wù)。 右鍵單擊該服務(wù),然后選擇“屬性”命令。
In the service’s properties window, copy (or write down) the text to the right of the “Service name” entry.
在服務(wù)的屬性窗口中,復(fù)制(或?qū)懴?“服務(wù)名稱”條目右側(cè)的文本。
When you have the service’s name, you can go ahead and close the properties window and the “Services” window.
有了服務(wù)的名稱后,就可以繼續(xù)并關(guān)閉屬性窗口和“服務(wù)”窗口。
第二步:刪除服務(wù) (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.
現(xiàn)在您已經(jīng)有了要?jiǎng)h除的服務(wù)的名稱,您將需要使用管理權(quán)限打開命令提示符來進(jìn)行刪除。
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”。 右鍵單擊“命令提示符”結(jié)果,然后選擇“以管理員身份運(yùn)行”命令。
At the Command Prompt, you’ll use the following syntax:
在命令提示符處,將使用以下語法:
sc delete ServiceNameSo, to delete the “RetailDemo” service we’re using in our example, we’d type the following text, and then hit Enter:
因此,要?jiǎng)h除我們?cè)谑纠惺褂玫摹?RetailDemo”服務(wù),我們將鍵入以下文本,然后按Enter:
sc delete RetailDemoNote: 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.
注意:如果要?jiǎng)h除的服務(wù)的名稱中有空格,則在鍵入命令時(shí)必須將名稱用引號(hào)引起來。
Now, if you use the F5 key to refresh your Services list, you’ll see that the service is gone.
現(xiàn)在,如果您使用F5鍵刷新“服務(wù)”列表,您將看到該服務(wù)已消失。
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中刪除服務(wù)非常容易,但是我們?cè)俅翁嵝涯趧h除服務(wù)之前要三思而行,因?yàn)橐坏┧鼈兿?#xff0c;很難將它們找回。
翻譯自: https://www.howtogeek.com/howto/windows-vista/how-to-delete-a-windows-service-in-vista-or-xp/
總結(jié)
以上是生活随笔為你收集整理的如何在Windows 7、8、10,Vista或XP中删除Windows服务的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: outlook附件大小限制_如何在Out
- 下一篇: centos 初学者_初学者:如何在Ou