| Refresh | Home EGTry.com

display and kill windows process


In Windows 2003 Server, the windows task manager does not show all processes. Use command line tasklist to display processes and taskkill to kill processes


tasklist to list processes

 tasklist /V

Output

Image Name    PID Session Name    Session#    Mem Usage Status    User Name          CPU Time    Window Title                                                            
============== ======== ========= ======== ============ =======   ===============    =========   ============ 
httpd.exe      1196     Services     0      3,616 K     Unknown    N/A               0:00:00      N/A                                                                     
svchost.exe    6044     Services     0     17,964 K     Unknown    N/A               0:00:02      N/A                                                                     
firefox.exe    4816     Console      1    244,500 K     Running    GLOBAL\SG0xxxxxx  0:04:57      edit a page - Mozilla Firefox                                           
cmd.exe        7932     Console      1      3,292 K     Running    GLOBAL\SG0xxxxxx  0:00:00      projects - tasklist  /V                                                 
tasklist.exe   7036     Console      1      6,720 K     Unknown    GLOBAL\SG0xxxxxx  0:00:00      N/A   



taskkill - kill a process

 taskkill /PID 7932