Killing processes in windows via command line

For some reason I couldn’t login to RDP of a Virtuozzo CT/VE so I had to go in via the VZ hardware node.

URL: http://www.tech-recipes.com/rx/446/xp_kill_windows_process_command_line_taskkill

tasklist

Listed all the tasks.  It appears that EXCEL.EXE had 100s of processes running so I needed to kill them.  I tried:

 taskkill /IM EXCEL.EXE

But, it warned me that it needed to be forcefully terminated.

  taskkill /F /IM EXCEL.EXE

Did the trick.   I could have also killed individual processes with:

taskkill /PID PROCESS_NUMBER

Leave a Reply

Your email address will not be published. Required fields are marked *