无论您是在处理速度缓慢的计算机,还是只是注意到一堆臃肿软件占用了所有资源,杀死Windows中的有问题的进程都是解决问题的最佳方法。
这不仅可以提高 PC 的性能,还可以帮助避免间谍软件和病毒。在你问之前:不,在Windows 10中杀死一个进程并不难。我们将介绍您可以安全轻松地执行此操作的所有不同方法。
为什么要在 Windows 10 中终止进程?
Windows中每个正在运行的应用程序都由一个或多个“进程”组成。这些进程负责将内容写入内存、对用户输入做出反应以及执行计算机程序背后的所有实际工作。
问题是,并非所有进程都由桌面上的活动窗口表示。例如,Windows系统进程在没有用户明确许可的情况下在后台安静地运行。(Windows)
这就是问题出现的地方。许多不需要的应用程序(如病毒或英国媒体报道软件)也会在后台作为隐藏进程运行,从而消耗资源并降低计算机速度。您甚至可以安全地关闭某些Windows进程,而不会影响您的计算机。
使用任务管理器(Task Manager)杀死不必要的进程
Windows 任务管理器(Windows Task Manager)是管理计算机上的程序和进程的默认工具。您可以使用它来查看、分析甚至终止正在运行的应用程序和进程。
它唯一的缺点是权限有限。任务管理器(Task Manager)无法杀死受保护的进程(包括系统任务和某些病毒)。此外,每次运行计算机时手动选择和终止所有目标进程可能很乏味。
- 要打开任务管理器,请按键盘上的Ctrl + Alt + Delete。另一种方法是右键单击任务栏(Taskbar)上的任意位置,然后从打开的菜单中选择它。
- 默认情况下,任务管理器(Task Manager)以流线型视图打开,仅显示正在运行的应用程序本身的名称。选择更多详细信息(More details )以查看所有进程。
- 现在您可以看到在您的计算机上运行的所有任务。它们分为可见的应用程序(Apps)和不可见的后台(Background)进程。您可以在右侧看到每个进程的CPU、Memory、Disk和Network使用情况。(Network)选择(Select)任何类别以按资源使用情况对进程进行排序。
- 查找与任何正在运行的应用程序或有用服务无关的进程,然后选择它们。
- 您还可以切换到“详细信息(Details)”选项卡以更详细地了解流程。通过查看用户(User)名,您可以快速识别哪些进程属于系统。
- 在这些选项卡中的任何一个中,选择右下角的结束任务按钮以终止该进程。(End task )该任务将被终止并从列表中消失。
使用命令提示符(Command Prompt)杀死Windows中的进程(Windows)
如果您更喜欢命令行工具,那么您也可以使用CMD 终止(CMD)进程。命令提示符(Command Prompt)允许访问许多有用的实用程序(many useful utilities),包括一个名为 Taskkill的实用程序。
顾名思义,您可以使用Taskkill杀死任何正在运行的任务或进程。如果您以管理员身份运行CMD ,您甚至可以终止受保护的任务。(CMD)
- 要使用Taskkill,首先打开命令提示符(Command Prompt)。在搜索框中键入(Type)cmd,然后单击右侧窗格中的以管理员身份运行。(Run as administrator )
- 在使用Taskkill之前,您需要知道相关任务的名称或PID。输入tasklist以获取计算机上所有正在运行的进程的列表。
- 现在,您可以通过两种方式使用Taskkill命令。要使用PID,请键入taskkill /F /PID x,其中 x 是您要杀死的进程的PID 。如果操作成功,您将收到通知。
- 如果您想输入名称,请使用taskkill /IM “x” /F,其中 x 是相关进程的名称。
当任务管理器(Task Manager)可以在不需要键入命令的情况下执行相同操作时,使用命令行工具似乎违反直觉。这是因为我们只触及了使用Taskkill(Taskkill)的最基本方法。还有许多其他方法可以过滤流程,而无需手动查看它们。
电源外壳
CMD不是使用键入命令杀死Windows进程的唯一方法。(Windows)Powershell是Windows的内置脚本语言,它提供了许多类似的功能。在某种程度上,Powershell只是命令提示符(Command Prompt)的一种更详细的形式。
Powershell的强大之处在于它能够创建命令脚本,Windows可以在闲暇时执行这些脚本。这允许您在Windows上自动执行复杂的任务。
- 首先,让我们打开PowerShell。在搜索栏中键入 PowerShell(Type PowerShell),然后单击以管理员身份运行(Run as administrator)。
- PowerShell窗口将打开。它看起来与命令提示符(Command Prompt)非常相似,只是背景颜色不同。
- 输入Get-Process以获取计算机上所有正在运行的进程的列表。
- 要结束进程,您可以使用PID或名称。例如,键入Stop-Process -ID x -Force,其中 x 是结束任何进程的PID 。
- 使用该命令不会从程序中产生任何确认,从而看起来什么都没有发生。但这是成功操作的正常行为。例如,如果您输入了错误的名称,您会收到一条错误消息。
- 使用命令Stop-Process -Name “x” -Force(其中 x 是进程的名称)来终止进程。这一次,命令成功。
如果您对PowerShell印象深刻,那是因为我们像 cmd 一样使用它。PowerShell旨在创建独立执行复杂任务的自主脚本(create autonomous scripts),无需任何实时反馈或输入。虽然您可以通过这种方式使用它,但坦率地说,命令提示符(Command Prompt)更胜一筹。
使用 KillProcess
到目前为止,我们已经查看了默认情况下存在于您的计算机中的工具和实用程序。虽然这些当然可以完成工作,但它们缺乏第三方工具中存在的一些有用功能。
KillProcess就是这样一种高级任务管理程序。除了能够杀死受保护的系统进程之外,它还允许创建“Kill List”。添加到此列表的进程一进入活动内存就会自动终止。这可能是永久关闭讨厌的英国媒体报道软件的好方法。
- 首先,从官方网站下载 KillProcess(download KillProcess from the official website)。有安装程序和便携式版本,您无需任何安装即可使用。
- 运行该应用程序后,您将看到一个类似任务管理器的窗口。您计算机上所有正在运行的进程,以及它们的描述和内存使用情况都显示在一个列表中。
- 右键单击(Right-click)要终止的进程,然后选择添加到列表。(Add to List.)
- 添加到终止列表的进程会显示一个绿色的勾号图标。要杀死列表中的进程,请单击左下角的炸药按钮。
这种方法最好的一点是您不必一个一个地杀死每个进程。即使在您退出程序后,此Kill List仍会保存,因此您只需运行KillProcess本身即可立即终止所有不需要的进程。
在Windows 10(Windows 10)中杀死进程的多种方法(Ways)
有多种方法可以杀死Windows 10中的进程。最直接的方法是使用任务管理器(Task Manager)。它允许您以易于理解的GUI格式查看和终止进程。
如果任务管理器(Task Manager)无法终止进程,则需要使用更强大的东西。您可以尝试使用第三方工具,例如KillProcess或使用命令行工具来终止受保护的进程。
要永久关闭不必要的后台进程,防止它们自动启动(prevent them from starting up automatically),或者将它们添加到 KillProcess 的终止列表中。
How to Kill a Process in Windows 10
Whethеr you’re dealing with a ѕlow comрuter or just noticed a bunch of bloatware hogging all resources, killing the offending processes in Windows is the best method to deal with the problem.
Not only does this boost the performance of your PC, but it can also help stave off spyware and viruses. And before you ask: no, it’s not hard to kill a process in Windows 10. We’ll go over all the different ways you can do this safely and easily.
Why Kill a Process in Windows 10?
Each running application in Windows is composed of one or more “processes.” These processes are responsible for writing things to memory, reacting to user input, and performing all the actual work behind a computer program.
The thing is, not all processes are represented by an active window on your desktop. Windows system processes, for example, run quietly in the background without any explicit permission from the user.
And this is where the problem arises. Many unwanted applications like viruses or bloatware also run as hidden processes in the background, consuming resources and slowing down your computer. You can safely shut down even some Windows processes without impacting your computer.
Killing Unnecessary Processes With the Task Manager
The Windows Task Manager is the default tool for managing programs and processes on your computer. You can use it to view, analyze, or even terminate running applications and processes.
Its only drawback is its limited permissions. The Task Manager cannot kill protected processes (including system tasks and some viruses). In addition, it can be tedious to manually select and terminate all the target processes each time you run your computer.
- To open the Task Manager, press Ctrl+Alt+Delete on your keyboard. Another way is to right-click anywhere on the Taskbar and select it from the menu that opens up.
- By default, Task Manager opens in a streamlined view that displays only the names of the running apps themselves. Select More details to see all the processes.
- Now you can see all the tasks running on your computer. They are split into the visible Apps and the invisible Background processes. You can see the CPU, Memory, Disk, and Network usage of each process on the right. Select any of the categories to sort the processes by resource usage.
- Look for the processes unrelated to any running app or useful services, and select them.
- You can also switch to the Details tab to get a more detailed overview of the processes. By looking at the User name, you can quickly identify which processes belong to the system.
- In either of these tabs, select the End task button at the bottom right to kill the process. The task will be terminated and disappear from the list.
Using Command Prompt to Kill a Process in Windows
If you prefer command-line tools, then you can kill a process using CMD too. The Command Prompt gives access to many useful utilities, including one called Taskkill.
As the name suggests, you can use Taskkill to kill any running task or process. If you run CMD as an administrator, you can even kill protected tasks.
- To use Taskkill, first open the Command Prompt. Type cmd in the search box and click on Run as administrator in the right-hand pane.
- Before you can use Taskkill, you need to know either the name or PID of the task in question. Enter tasklist to get a list of all the running processes on your computer.
- Now, you can use the Taskkill command in two ways. To use the PID, type taskkill /F /PID x, where x is the PID of the process you want to kill. You’ll be notified if the operation is successful.
- If you want to enter the name instead, use taskkill /IM “x” /F, where x is the name of the process in question.
It may seem counter-intuitive to use a command-line tool when the Task Manager can do the same without any need for typed commands. This is because we have only touched upon the most basic way to use Taskkill. There are many other ways to filter the processes without having to look through them manually.
PowerShell
CMD is not the only method to kill Windows processes with typed commands. Powershell is Windows’ built-in scripting language that offers many similar capabilities. In a way, Powershell is just a more verbose form of the Command Prompt.
The power of Powershell comes from its ability to create scripts of commands, which Windows can execute at leisure. This allows you to automate complex tasks on Windows.
- First, let us open PowerShell. Type PowerShell in the search bar and click on Run as administrator.
- The PowerShell window will open up. It looks remarkably similar to the Command Prompt, just with a different background color.
- Enter Get-Process to obtain a list of all the running processes on your computer.
- To end a process, you can use either the PID or the name. For example, type Stop-Process -ID x -Force, where x is the PID to end any process.
- Using the command does not produce any acknowledgment from the program, making it seem that nothing has happened. But that is its normal behavior for a successful operation. If you enter the wrong name, for example, you get an error message.
- Use the command Stop-Process -Name “x” -Force, where x is the name of the process, to kill the process. This time, the command is successful.
If PowerShell seems underwhelming to you, it’s because we are using it like cmd. PowerShell is meant to create autonomous scripts that perform complex tasks independently, without any real-time feedback or input. While you can use it this way, the Command Prompt is frankly better at it.
Using KillProcess
So far, we have looked at tools and utilities present in your computer by default. While these certainly can get the job done, they lack some useful features present in third-party tools.
KillProcess is one such advanced task managing program. In addition to its ability to kill protected system processes, it also allows for creating a “Kill List”. Processes added to this list are automatically killed as soon as they enter active memory. This can be a great method to permanently shut down pesky bloatware.
- To begin, download KillProcess from the official website. There is both an installer and a portable version that you can use without any installation.
- Upon running the app, you will be greeted with a task manager-like window. All the running processes on your computer are displayed in a list, along with their descriptions and memory usage.
- Right-click on the process you want to kill, and select Add to List.
- Processes added to the kill list show up with a green tick icon. To kill the processes of the list, click on the dynamite button on the bottom left.
The best thing about this approach is that you don’t have to kill each process one by one. This Kill List remains saved even after you exit the program, so you only need to run KillProcess itself to terminate all unwanted processes at once.
Many Ways to Kill a Process in Windows 10
There are multiple ways to kill a process in Windows 10. The most straightforward method is to use the Task Manager. It allows you to view and terminate processes in an easy-to-understand GUI format.
In case the Task Manager cannot kill the process, you need to use something more powerful. You can either try a third-party tool like KillProcess or use command-line tools to kill the protected process.
To permanently shut down unnecessary background processes, prevent them from starting up automatically, or add them to KillProcess’ kill list.