Tasklist & Taskkill

As a system administrator, tasklist and taskkill are very important where you could manage them easily from a remote server without access to the remote desktop.

Sometimes, you might suffer from a server highload, you may list the process task list from tasklist from another server,

tasklist /s system /u username /p password

Eg. tasklist /s myserver /u administrator /p mypassword

Next, you may perform a task killing from the taskkill command.

taskkill /f /im process /s system

Eg, taskkill /f /im php-cgi.exe /s myserver

Result:
SUCCESS: The process “php-cgi.exe” with PID 4020 has been terminated.