Kill process with MS PowerShell

Tags: powershell

I sometime need to kill multiples processes manually e.g., to kill all Chrome drivers in my computer. I think the following PowerShell script is pretty handy and maybe useful for other people as well.

Get-Process -Name change-to-process-name-that-you-want-to-kill | Select-Object { Stop-Process -Id $_.Id -Force }


Get-Process -Name chrome | Select-Object { Stop-Process -Id $_.Id -Force }

Short hand command

Get-Process chrome | Stop-Process -Force