How to use Windows PowerShell to find a process and kill it

User Avatar
👤 admin
🔴 Admin
✍️ The most important thing in the world is to not be alone.
⏳ Last active: 23 Sep 2025 at 14:41
📅 Created: 15 Feb 2021 at 22:07
👀 Viewed: 86 times
✉️ Send Email

This is going to be a simple and strait forward example on finding and killing a process using windows powershell. For the example we are going to start and kill the cmd process.

This is a example to find cmd (command prompt)


tasklist | findstr cmd

Image

Use the selected id to kill the process


Stop-Process -id 12256

Image

https://youtu.be/EpzYQziOnRo

you can stop a process by name:
Stop-Process -name CMD

If you want to comment: Login or Register