每个人都知道您需要删除英国媒体报道(delete bloatware)软件和其他无用的应用程序以提高 PC 的性能。但是服务处理起来有点棘手。
这些低级进程在后台运行,默默占用宝贵的计算资源。由于它们不是应用程序,因此您不能只前往添加(Add)或删除程序(Remove Programs)来卸载它们。
那么如何摆脱Windows计算机上的服务呢?这里有一些方法。
什么是服务?
现代应用程序是复杂且多方面的。需要各种进程来保持任何应用程序运行,从您与之交互的 UI 到处理程序内部工作的后台线程。
这些服务是执行繁重工作的隐藏进程,从内存中读取文件并显示您看到的窗口。
Windows操作系统拥有一系列服务,可以处理保持计算机运行的细节。这些服务中的大多数对于您的 PC 的运行都是必不可少的,并且无法在不影响性能的情况下安全删除。
如何查看计算机(Your Computer)上安装的所有服务(Services)?
在您开始尝试删除服务之前,最好先看看您的 PC 上正在运行哪些服务。当然,由于它们不会作为已安装的应用程序出现在磁盘上,因此您必须尝试另一种方法。
- services.msc 实用程序是查看Windows计算机上所有已安装服务的最简单方法。您可以通过在开始(Start)菜单搜索栏中
输入“服务”来找到它。
- 运行服务(Services)应用程序会为您提供一个窗口(Window),其中包含按字母顺序排列的服务列表以及每个服务的简短描述、状态和启动时间。
您还可以使用任务管理器(Task Manager)查看任何正在运行的服务,但这并没有为您提供太多关于它们的信息。services.msc 实用程序显示所有服务,即使它们目前没有运行,并提供描述以帮助您了解其用途。
您应该删除Windows中的服务(Services)吗?
Windows中的服务可以分为两大类——Windows服务和第三方服务。
在大多数情况下,尝试删除 Windows 服务并不是一个好主意(it isn’t a good idea to try and remove a Windows service)。其中许多服务执行基本功能,删除它们可能会使计算机崩溃。
另一方面,第三方服务是由已安装的应用程序创建的。虽然您确实希望与有用应用程序相关的服务继续运行,但最好删除所有其他内容以提高性能。
甚至一些 Windows 服务也属于这一类(some Windows services fall into this category),可以在不影响核心系统功能的情况下停止和删除。但如果不确定,请始终保留Windows服务。
方法 1:使用Windows 注册表(Windows Registry)
删除任何服务的最简单方法(即使看起来有点令人生畏)是使用Windows Registry。注册表是操作系统和许多应用程序存储其低级设置的地方——包括要启动的服务。您只需导航到Services键并删除其中列出的任何服务,它就会停止工作。
- 要编辑注册表,您需要使用注册表编辑器(Registry Editor)工具。只需在(Just)开始菜单(Start Menu)搜索栏中输入“regedit”即可找到它。
- Regedit易于使用。所有键都像Windows 文件资源管理器(Windows File Explorer)中的文件夹一样排列,并以相同的方式导航。您可以展开键以查看其子键(或子目录)及其值。
- 对于服务,您需要导航到 HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices
- 您计算机上的所有服务都由该目录中的键表示。只需(Simply)右键单击要删除的密钥并选择Delete即可。
下次重新启动 PC 时,该服务将不再运行。
方法 2:从命令提示符
命令行终端(command-line terminal)提供了另一种删除服务的简便方法。请记住,此方法要求您输入要删除的服务名称,因此您必须先找到它。
- 通过在开始菜单(Start Menu)搜索栏中键入“cmd”打开命令提示符。(Command Prompt)使用以管理员身份运行(Run)选项,因为某些命令需要管理员权限。
- 如果不确定要删除的服务的名称,可以在 cmd 中列出所有服务。只需(Simply)输入 sc queryex type=service state=all
- 要删除服务,请使用命令 sc delete name,其中名称应替换为相关服务的实际名称。如果操作成功,
您将收到一条SUCCESS消息。(SUCCESS)
方法 3:Windows PowerShell
对于许多用户来说,PowerShell命令比命令提示符更有用、更方便。PowerShell cmdlet 可无限重复使用,允许系统管理员通过运行单个脚本来执行日常任务。
- (Open PowerShell)通过在“开始”菜单(Start Menu)栏中搜索来打开 PowerShell 。您可能希望以管理员身份运行它以获得完全权限。
- PowerShell也可以显示系统上安装的所有服务的名称。如果您不记得要删除的服务的准确名称,这可能是一种方便的方式。只需(Just)使用命令Get-Service即可查看服务列表。
- 删除服务的命令与命令提示符(Command Prompt)中的命令相同: sc delete name 其中名称将替换为相关服务的名称。与 cmd 不同,PowerShell仅提供错误消息,因此命令成功的唯一提示是什么也看不到。
方法 4:使用 Autoruns 实用程序
如果你不喜欢摆弄注册表项和终端命令,你可以试试Autoruns。这是一个Microsoft实用程序,旨在在您的计算机上配置自动启动应用程序(configure auto-start applications),包括Windows和第三方应用程序。
它非常全面,显示所有扩展、通知和服务。您还可以使用Autoruns删除服务,这比使用终端命令更容易。
- 首先,从官方网站下载 Autoruns(download Autoruns from the official website)。
- 这是一个便携式应用程序,因此您只需提取下载的 zip 文件并运行它。
- 接受许可协议后,您将看到Autoruns的主屏幕,它会立即开始扫描系统。
- 切换到“服务(Services)”选项卡以查看在您的计算机上注册的所有服务。Autoruns还会告诉您服务的发布者是否经过验证,帮助您轻松淘汰严谨的第三方服务。
- 右键单击(Right-click)要删除的任何服务,然后从出现的下拉菜单中
选择删除。(Delete)
- Autoruns将确认您是否要删除服务并警告您此操作不可撤销。选择确定(Select OK)继续。
- 某些服务需要提升权限才能删除,否则拒绝访问。您可以以管理员(Administrator)身份运行来解决该问题。
在Windows中删除服务(Services)的最佳方法是什么?
不必要的服务会耗尽处理周期和在其他地方更好使用的内存,从而降低您的计算机速度。您可以通过从计算机中删除它们来显着提高系统性能和启动时间。
但由于服务不完全是应用程序,它们不能以通常的方式卸载。您必须使用注册表编辑器或(Registry Editor)命令提示符(Command Prompt)或PowerShell中的 sc delete 命令删除它们各自的键。
或者更好的是,使用Autoruns实用程序。这可能是从Windows(Windows)中删除服务的唯一用户友好的方式,并且工作起来就像一个魅力。作为奖励,Autoruns还允许您清理启动(Startup)列表,删除任何(removing any bloatware)可能会减慢启动时间的过时软件。
4 Ways to Delete or Remove a Service in Windows
Everyone knоws you need to delete bloatware and other useless applications to improve your PC’s performance. But services are a bit trickier to deal with.
These low-level processes run in the background, silently taking up valuable computing resources. Since they aren’t apps, you can’t just head to Add or Remove Programs to uninstall them.
So how do you get rid of services on a Windows computer? Here are some methods.
What Are Services?
Modern applications are complex and multifaceted. Various processes are needed to keep any app running, from the UI you interact with to the background threads that handle the inner workings of the program.
These services are hidden processes that do the heavy lifting, reading files from memory and displaying the window you see.
The Windows operating system owns a slew of services that deal with the nitty-gritty of keeping your computer running. Most of these services are essential to the functioning of your PC and can’t be safely removed without impacting performance.
How Can You See All Services Installed on Your Computer?
Before you start trying to remove services, it would be a good idea to see which services are running on your PC. Of course, since they don’t appear on disk as installed applications, you have to try another method.
- The services.msc utility is the easiest way of viewing all the installed services on a Windows computer. You can locate it by entering “services” in the Start menu search bar.
- Running the Services app gives you a Window with an alphabetical list of services along with a short description, status, and startup time of each.
You can also use the Task Manager to view any running services, but that doesn’t give you much information on them. The services.msc utility displays all services, even if they aren’t running at the moment, and provides a description to help you understand its purpose.
Should You Remove Services in Windows?
Services in Windows can be divided into two main categories – Windows services and third-party services.
For the most part, it isn’t a good idea to try and remove a Windows service. Many of these services perform essential functions, and deleting them can crash the computer.
Third-party services, on the other hand, are created by installed applications. And while you do want services associated with useful applications to keep running, it’s a good idea to remove everything else to improve performance.
Even some Windows services fall into this category and can be stopped and removed without affecting core system functionality. But if unsure, always let Windows services remain.
Method 1: Using the Windows Registry
The easiest way to remove any service (even though it might seem a bit daunting) is to use the Windows Registry. The registry is where the OS and many applications store their low-level settings – including the services to start. You can simply navigate to the Services key and delete any of the services listed there, and it will stop working.
- To edit the registry, you need to use the Registry Editor tool. Just enter “regedit” in the Start Menu search bar to find it.
- Regedit is easy to use. All keys are arranged like folders in Windows File Explorer and navigated the same way. You can expand the keys to view their subkeys (or subdirectories) and their values.
- For services, you need to navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
- All the services on your computer are represented by keys in this directory. Simply right-click on the key you want to remove and select Delete.
The next time you reboot your PC, the service will no longer run.
Method 2: From the Command-Prompt
The command-line terminal offers another easy way to delete services. Remember that this method requires you to enter the service name you wish to remove, so you must find that out first.
- Open Command Prompt by typing “cmd” in the Start Menu search bar. Use the Run as administrator option as some commands require admin privileges.
- If you’re unsure about the name of the service you wish to delete, you can list all services in cmd. Simply enter sc queryex type=service state=all
- To delete a service, use the command sc delete name, where the name should be replaced with the actual name of the service in question. You’ll get a SUCCESS message if the operation is successful.
Method 3: Windows PowerShell
For many users, PowerShell commands are more useful and convenient than the command prompt. PowerShell cmdlets are infinitely reusable, allowing system administrators to perform everyday tasks by running a single script.
- Open PowerShell by searching for it in the Start Menu bar. You may want to run it as an administrator for full privileges.
- PowerShell can display the names of all the services installed on your system too. It can be a handy way of viewing the accurate name of the service you want to remove in case you don’t remember it. Just use the command Get-Service to view the services list.
- The command for deleting a service is the same as in Command Prompt: sc delete name where the name is to be replaced with the name of the service in question. Unlike cmd, PowerShell only gives error messages, so the only hint of the command being successful is seeing nothing.
Method 4: With Autoruns Utility
If fiddling with registry keys and terminal commands is not your thing, you can try out Autoruns. This is a Microsoft utility designed to configure auto-start applications on your computer, including both Windows and third-party apps.
It is surprisingly comprehensive, displaying all extensions, notifications, and services. You also can remove services with Autoruns, which is easier than using terminal commands.
- To begin, download Autoruns from the official website.
- It’s a portable app, so all you have to do is extract the downloaded zip file and run it.
- After accepting the license agreement, you will be presented with the main screen of Autoruns, which immediately starts scanning the system.
- Switch to the Services tab to view all services registered on your computer. Autoruns also tells you whether the service’s publisher is verified or not, helping you weed out scrupulous third-party services easily.
- Right-click on any service you want to remove and select Delete from the drop-down menu that appears.
- Autoruns will confirm whether you want to delete the service and warn you that this action is irreversible. Select OK to continue.
- Some services will require elevated privileges to be deleted, denying access otherwise. You can Run as Administrator to fix that issue.
What Is the Best Way to Remove Services in Windows?
Unnecessary services can slow down your computer by using up processing cycles and memory better used elsewhere. You can significantly improve system performance and startup times by removing them from your computer.
But since services aren’t exactly applications, they can’t be uninstalled in the usual ways. You must remove their respective key using the Registry Editor or the sc delete command from the Command Prompt or PowerShell.
Or better yet, use the Autoruns utility. It is perhaps the only user-friendly way of removing services from Windows and works like a charm. As a bonus, Autoruns lets you clean the Startup list as well, removing any bloatware that might be slowing down boot times.