Killing a Process in Windows 10
- Open the powershell prompt. I use Windows Terminal
- Type tasklist to see the list of all running processes and their PIDs. You can use a pipe with the more command
- To kill a process by its PID, type like the below
taskkill /F /PID pid_number
- To kill a process by its name, type the command
taskkill /IM "process name" /F
You can use PowerShell commands too
Stop-Process -Name "Process Name" -Force
Stop-Process -ID PID -Force
Comments