Microsoft DOS taskkill command


TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F]
/f Specifies that process(es) be forcefully terminated. This parameter is ignored for remote processes; all remote processes are forcefully terminated.
/t Specifies to terminate all child processes along with the parent process, commonly known as a tree kill.
/fi FilterName Applies a filter to select a set of tasks.
Allows “*” to be used. ex. imagename eq acme*

Filter Name Valid Operators Valid Value(s)
IMAGENAME eq, ne Image name
PID eq, ne, gt, lt, ge, le PID value
SESSION eq, ne, gt, lt, ge, le Session number.
CPUTIME eq, ne, gt, lt, ge, le CPU time in the format
of hh:mm:ss.
hh – hours,
mm – minutes, ss – seconds
MEMUSAGE eq, ne, gt, lt, ge, le Memory usage in KB
USERNAME eq, ne User name in [domain]user format
MODULES eq, ne DLL name
SERVICES eq, ne Service name
WINDOWTITLE eq, ne Window title
/im ImageName Specifies the image name of the process to be terminated. Use the wildcard (*) to specify all image names.
/PID processid Specifies the PID of the process to be terminated.
Use TaskList to get the PID.