Kill process on remote computer

We can kill processes running on a remote pc using the taskkill command.

Usage:

Taskkill /S [ip_address] /U [username] /P [password] /PID [processid]
Taskkill /S [ip_address] /U [username] /P [password] /F /IM [iamgename]
Taskkill /S [ip_address] /U [username] /P [password] /T /FI [filter]

Examples:

TASKKILL /S 192.168.1.50 /U myusername /P mypassword /PID 1253
TASKKILL /S 192.168.1.50 /U myusername /P mypassword /F /IM notepad.exe
TASKKILL /S 192.168.1.50 /U myusername /P mypassword /T /FI "IMAGENAME eq note*"

/F force the termination of the process(es)
/T Terminates the specified process and any child processes which were started by it.

%d bloggers like this: