Search code examples
windowsprocesscmduidtaskkill

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


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?


Solution

  • 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.