Using /f to forcefully terminate a process
When trying to kill a process, the utility might print something like SUCCESS: Sent termination signal to the process with PID 4128.
even though the process was not killed.
Therefore, in order to make sure a process is killed, the /f
might be used to forcefully terminate a process:
C:\> taskkill /f /pid 5711
Using a filter on the process name
taskkill
has a rudimentary filter function that can be applied with /fi
which can be used to kill a process when I am not exactly sure what the name of the process is.
C:\> taskkill /fi "imagename eq sqldeveloper*"
SUCCESS: Sent termination signal to the process with PID 33220.