You are on page 1of 1

If you know the name of a process to kill, for example notepad.

exe, use the foll owing command from a command prompt to end it: taskkill /IM notepad.exe This will cause the program to terminate gracefully, asking for confirmation if there are unsaved changes. To forcefully kill the same process, add the /F optio n to the command line. Be careful with the /F option as it will terminate all ma tching processes without confirmation. To kill a single instance of a process, specify its process id (PID). For exampl e, if the desired process has a PID of 827, use the following command to kill it : taskkill /PID 827 Using filters, a variety of different patterns can be used to specify the proces ses to kill. For example, the following filter syntax will forcefully kill all p rocesses owned by the user Quinn: taskkill /F /FI "USERNAME eq Quinn" The following table shows the available filters and their use. Filter Name ----------STATUS IMAGENAME PID SESSION CPUTIME MEMUSAGE USERNAME MODULES SERVICES WINDOWTITLE Valid Operators --------------eq ne eq ne eq ne gt lt ge le eq ne gt lt ge le eq ne gt lt ge le eq ne gt lt ge le eq ne eq ne eq ne eq ne Valid Value(s) -------------RUNNING | NOT RESPONDING Image name PID value Session number. CPU time in the format of hh:mm:ss. Memory usage in KB User name in [domain\]user format DLL name Service name Window title

eq: equals ne: not equal gt: greater than lt: less than gt: greater than or equal le: less than or equal

You might also like