I’m a Linux guy so I want to kill processes from the command line. Here are a few commands that can be good to know when Windows processes not are behaving (the way you want).
To display help and all the available parameters for a command, use the /? parameter.
This command displays protocol statistics and current TCP/IP network connections. Use netstat /? to see all parameters. It can be used to find a process that is occupying a port you want to use. To do that, I use netstat -ano which displays the PID (process id). Example:
PID in the example is in the rightmost column (9260). I’m using findstr to filter the output
This tool displays a list of currently running processes on either a local or remote machine. Use tasklist /? to see all parameters.
For example to see which process is occupying port 8080 (from the example above, PID=9260) I can use the /FI (filter) parameter:
I usually can’t remember the exact syntax for the filter, so I use findstr instead:
A good thing with the filter is that you for example can list processes that not are responding (see taskkill below how to kill it):
This command can kill processes on either a local or remote machine. Use tasklist/? to display the parameters. For example kill by PID:
Or by IM:
With the /FI (filter) parameter, you can kill all processes that not are responding: