Kill a Process in Windows 10  

    Kill a Process in Windows 10

    Kill a Process in Windows 10

    How to Kill a Process in Windows 10
    Published by Category: General Tips
    16 Feb 2023
    Designer Media Ltd

    How to Kill a Process in Windows 10


    A process is an instance of a program that is being executed. Each process running in Windows is assigned a unique decimal number called the process ID, or PID.

    If you notice a running process is reducing your computer's performance because it's hung, not responding, using a high percentage of CPU and/or memory resources, then you can kill the process to end it.

    This tutorial will show you different ways on how to kill a process in Windows 10.


    For a Windows 11 version of this tutorial, see:

    Kill Process in Windows 11



    Contents







    OPTION ONE

    To Kill a Process in Task Manager Processes Tab


    The Processes tab in Task Manager will show you a list of all apps, background processes, and Windows processes that are currently running under only your account.


    1 Open Task Manager in more details view.

    2 Do step 3 (parent) or step 4 (child) below for which process your want to kill.


     3. To Kill Parent Process and its Child Processes

    For example, to kill Google Chrome and all of its opened tabs and windows.

    A) Click/tap on the Processes tab. (see screenshots below)

    B) Select a parent process you want to kill, and perform one of the actions below:
    • Press the Delete key.
    • Click/tap on the End task button. Explorer will have a Restart button instead.
    • Right click or press and hold on the process, and click/tap on End task.

    C) When finished, go to step 5 below.

    Kill a Process in Windows 10-kill_process_in_task_manager-1.jpg Kill a Process in Windows 10-kill_process_in_task_manager-1b.jpg


     4. To Kill Only a Child Process

    For example, to only kill a subprocess (ex: opened drive) instead of all "Windows Explorer" processes.

    A) Click/tap on the Processes tab. (see screenshot below)

    B) Expand open the parent process (ex: "Windows Explorer) of the child process (ex: "MyBook F:") you want to kill.

    C) Select the child process you want to kill, and perform one of the actions below:

    • Press the Delete key.
    • Click/tap on the End task button.
    • Right click or press and hold on the process, and click/tap on End task.

    D) When finished, go to step 5 below.

    Kill a Process in Windows 10-kill_process_in_task_manager-1c.jpg

    5 You can now close Task Manager if you like.






    OPTION TWO

    To Kill a Process in Task Manager Details Tab


    If you are signed in as a standard user, the Details tab in Task Manager will show you a list of all processes currently running under only your account and a description of each process.

    If you are signed in as an administrator, the Details tab in Task Manager will also show you a list of all processes currently running on the computer from all users.


    1 Open Task Manager in more details view.

    2 Click/tap on the Details tab, select a process you want to kill, and perform one of the actions below: (see screenshot below)

    • Press the Delete key.
    • Click/tap on the End task button.
    • Right click or press and hold on the process, and click/tap on End task.

    Kill a Process in Windows 10-kill_process_in_task_manager-2.png

    3 Click/tap on End process to confirm. (see screenshot below)
    Kill a Process in Windows 10-kill_process_in_task_manager-3.png

    4 When finished, you can now close Task Manager if you like.






    OPTION THREE

    To Kill a Process in Command Prompt


    1 Open a command prompt or an elevated command prompt.

    2 Type tasklist into the command prompt, and press Enter to see a list of all currently running processes. Make note of the Image Name and PID of the process (ex: OneDrive) you want to kill. (see screenshots below)
    Kill a Process in Windows 10-kill_process_command-1.png Kill a Process in Windows 10-kill_process_command-2.png

    3 Do step 4 (Image Name) or step 5 (PID) below for how you want to kill the process.


     4. To Kill Process using Image Name

    A) Type the command below you want to use into the command prompt, and press Enter. (see screenshot below)

    (To forcefully kill all instances of a process)
    WMIC process where name="Image Name" Delete

    OR

    (To forcefully kill only this process)
    taskkill /IM Image Name /F

    OR

    (To forcefully kill this process and any child processes started by it)
    taskkill /IM Image Name /T /F

    Substitute Image Name in the command above with the actual Image Name (ex: "OneDrive.exe") from step 2 above for the process you want to kill.

    For example: taskkill /IM OneDrive.exe /F

    If you would like to kill multiple processes at once in one command line, then you would just add an additional /IM Image Name for each process.

    For example:

    (Two processes)
    taskkill /IM Image Name /IM Image Name /F

    (Three processes)
    taskkill /IM Image Name /IM Image Name /IM Image Name /F

    Kill a Process in Windows 10-kill_process_command-4.png


     5. To Kill Process using PID

    A) Type the command below you want to use into the command prompt, and press Enter. (see screenshot below)

    (To forcefully kill only this process)
    taskkill /PID PID /F

    OR

    (To forcefully kill this process and any child processes started by it)
    taskkill /PID PID /T /F

    Substitute PID in the command above with the actual PID (ex: "5228") from step 2 above for the process you want to kill.

    For example: taskkill /PID 5228 /F

    If you would like to kill multiple processes at once in one command line, then you would just add an additional /PID PID for each process.

    For example:

    (Two processes)
    taskkill /PID PID /PID PID /F

    (Three processes)
    taskkill /PID PID /PID PID /PID PID /F

    Kill a Process in Windows 10-kill_process_command-3.png


    6 When finished, you can close the command prompt if you like.

    If you get an Access is denied error message, then it means you will need to run the command in an elevated command prompt instead.







    OPTION FOUR

    To Kill a Process in PowerShell


    To see more usage options for the Stop-Process command, see: Stop-Process | Microsoft Docs


    1 Open PowerShell or an elevated PowerShell.

    1 Type Get-Process into PowerShell, and press Enter to see a list of all currently running processes. Make note of the ProcessName and Id (PID) of the process (ex: OneDrive) you want to kill. (see screenshot below)
    Kill a Process in Windows 10-kill_process_powershell-1.jpg

    3 Do step 4 (Name) or step 5 (ID) below for how you want to kill the process.


     4. To Kill Process using Name

    A) Type the command below into PowerShell, and press Enter. (see screenshot below)

    Stop-Process -Name "ProcessName" -Force

    Substitute ProcessName in the command above with the actual ProcessName (ex: "OneDrive") from step 2 above for the process you want to kill.

    For example: Stop-Process -Name "OneDrive" -Force

    If you would like to kill multiple processes at once in one command line, then you would just add an additional "ProcessName" separated by a comma for each process.

    For example:

    (Two processes)
    Stop-Process -Name "ProcessName","ProcessName" -Force

    (Three processes)
    Stop-Process -Name "ProcessName","ProcessName","ProcessName" -Force

    Kill a Process in Windows 10-kill_process_powershell-3.png


     5. To Kill Process using ID (PID)

    A) Type the command below into PowerShell, and press Enter. (see screenshot below)

    Stop-Process -ID PID -Force

    Substitute PID in the command above with the actual Id (ex: "11312") from step 2 above for the process you want to kill.

    For example: Stop-Process -ID 11312 -Force

    If you would like to kill multiple processes at once in one command line, then you would just add an additional PID separated by a comma for each process.

    For example:

    (Two processes)
    Stop-Process -ID PID,PID -Force

    (Three processes)
    Stop-Process -ID PID,PID,PID -Force

    Kill a Process in Windows 10-kill_process_powershell-2.png


    6 When finished, you can close PowerShell if you like.

    If you get an Access is denied error message, then it means you will need to run the command in an elevated PowerShell instead.



    That's it,
    Shawn Brink






  1. Posts : 7,606
    Windows 10 Home 20H2
       #1

    @Brink, I found an option to kill a process that cannot be killed by taskkill

    WMIC process where name='An app.exe' Delete

    I used it to kill a stubborn process of a program I wanted to uninstall.
      My Computer


  2. Posts : 68,886
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Matthew Wai said:
    @Brink, I found an option to kill a process that cannot be killed by taskkill

    WMIC process where name='An app.exe' Delete

    I used it to kill a stubborn process of a program I wanted to uninstall.
    Thank you Matthew. I added this command to step 4 of option 3.
      My Computers


  3. Posts : 1,621
    Windows 10 Home
       #3

    Guys, Gals, all of this great stuff works great if one has a command prompt or killEXE access or PowerShell available, however, another version of fun is when nothing at all is responding, no key, no mouse, then what? I know what: Power button.
    In defense and support of hdmi, I have been using UWT for Windows 7 for some time, while it certainly does not work in many cases, it seems to help in some cases. There is nothing wrong with UWT, many AV AM AS passed it with flying colors -- if one gets that utility from the proper and proven sources.
      My Computer


  4. Posts : 68,886
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    RolandJS said:
    Guys, Gals, all of this great stuff works great if one has a command prompt or killEXE access or PowerShell available, however, another version of fun is when nothing at all is responding, no key, no mouse, then what? I know what: Power button.
    In defense and support of hdmi, I have been using UWT for Windows 7 for some time, while it certainly does not work in many cases, it seems to help in some cases. There is nothing wrong with UWT, many AV AM AS passed it with flying colors -- if one gets that utility from the proper and proven sources.
    Hello mate,

    If you are unable to access Ctrl+Alt+Delete to open the Task Manager from, then yeah power button time.
      My Computers


 

Tutorial Categories

Kill a Process in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:30.
Find Us




Windows 10 Forums