• ARTICLES
SEARCH

How-To Geek

How to Kill a Process From the CLI in Windows

image

Sure, anybody can end a process from the Task Manager, but did you know you can also do it from the command line?

How to Kill a Process From the CLI in Windows

If the command prompt is your flavor of tea, you will need to know to know the name of the process you are trying to kill beforehand. The easiest way to get these is on the Details tab of the Task Manager.

image

Once you have the name of the process a simple tskill is all it takes:

tskill chrome

image

If you have already migrated to the Command Prompt’s older brother PowerShell, it is much simpler.

Get-Process | Where Name –Like “chrome*” | Stop-Process

The above would stop all the processes that match the chrome* wildcard pattern.

image

That’s all there is to it.

Taylor Gibb is a Microsoft MVP and all round geek, he loves everything from Windows 8 to Windows Server 2012 and even C# and PowerShell. You can also follow him on Google+

  • Published 04/12/13

Get Free Articles in Your Inbox!

Join 134,000 newsletter readers

Email:

Go check your email!