how to kill a program by process name using cmd in windows 8?

Patrioticcow picture Patrioticcow · Mar 24, 2015 · Viewed 30.8k times · Source

it seems that whenever i open a program in windows 8, the process name is WWAHost.exe

i would like to be able to do something like TASKKILL /F /IM notepad.exe and terminate a specific process by name

if i kill WWAHost.exe then all open programs will die.

any ideas?

Answer

user4104817 picture user4104817 · Mar 24, 2015

You can kill the process and all its children (ie. all processes started by it) using the /t switch:

taskkill /f /t /im wwahost.exe

See the documentation for taskkill (ss64) and tskill (ss64) system utilities.