I have always known that the local machine can list and kill processes, but I do not know that it also has the remote access function.
You can list the processes on the remote host and end the processes on the remote host:
Example:
Remote Host: 192.168.230.3; User name: chouwazi.com; Password: 123456
The result of listing the processes on the remote host 192.168.230.3 is as follows:
C: \> tasklist/S 192.168.230.3/U chouwazi.com/P 123456
Image name PID session name session # memory usage
========================================================== ======================================
System Idle Process 0 Console 0 28 K
System 4 Console 0 296 K
Smss.exe 624 Console 0 512 K
Csrss.exe 736 Console 0 6,816 K
Winlogon.exe 920 Console 0 3,764 K
Services.exe 972 Console 0 3,384 K
Lsass.exe 984 Console 0 9,864 K
Svchost.exe 1188 Console 0 2,924 K
Svchost.exe 1260 Console 0 3,584 K
Svchost.exe 1312 Console 0 4,376 K
Svchost.exe 1364 Console 0 5,220 K
Svchost.exe 1388 Console 0 16,172 K
Spoolsv.exe 1700 Console 0 5,548 K
Msdtc.exe 1732 Console 0 4,452 K
Svchost.exe 1868 Console 0 2,112 K
Inetinfo.exe 1944 Console 0 8,936 K
MsDtsSrvr.exe 1964 Console 0 16,288 K
Sqlservr.exe 572 Console 0 41,128 K
Msmdsrv.exe 604 Console 0 24,960 K
Svchost.exe 692 Console 0 1,300 K
ReportingServicesService. 676 Console 0 32,472 K
VMwareService.exe 1760 Console 0 3,076 K
Msftesql.exe 252 Console 0 3,928 K
Svchost.exe 372 Console 0 5,428 K
Svchost.exe 640 Console 0 4,532 K
Wmiprvse.exe 3108 Console 0 4,996 K
Assumer.exe 2808 Console 0 16,436 K
VMwareTray.exe 2912 Console 0 3,792 K
VMwareUser.exe 2920 Console 0 4,728 K
Ctfmon.exe 2928 Console 0 2,804 K
Daemon.exe 2940 Console 0 9,100 K
Wuauclt.exe 3096 Console 0 5,040 K
Cmd.exe 3644 Console 0 1,840 K
Conime.exe 3660 Console 0 2,408 K
Wmiprvse.exe 3668 Console 0 5,668 K
Cmd.exe 2864 Console 0 1,812 K
Taskkill/S 192.168.230.3/U administrator/P 123456/IM cmd.exe
Force the process named cmd.exe to be killed on 192.168.230.3.
/F indicates force. It is best to add it. Otherwise, it cannot be killed.
The returned results are as follows:
C: \> taskkill/S 192.168.230.3/U chouwazi.com/P 123456/IM cmd.exe
Successful: the process "cmd.exe" has been terminated, and its PID is 3644.
Successful: the process "cmd.exe" has been terminated, and its PID is 2864.
Taskkil/S 192.168.230.3/U chouwazi.com/P 123456/PID 1111
Kill processes with a PID of 1111 on the remote host.
The/F parameter of taskkill indicates forced termination. It is recommended that you add this parameter when killing a local process. Otherwise, it cannot be killed.
If you use taskkill to kill a process on a remote host, the specified process is forcibly terminated no matter whether or not the/F parameter is added.
/IM parameter indicates the name of the process to be killed
Author: chouwaziadmin