Taskkill
You can kill processes on a remote computer by using the taskkill command. Run ‘taskkill /?’ on a command line to see all the options.
We use SpySweeper on all our workstations at work. It occasionally hangs during a scan, severely slowing down that particular PC. Here’s the command I use to kill it remotely:
taskkill /s computername /im spysweep* /f /t
/s lets you designate a remote PC, in this case ‘computername’.
/im lets you specify a process by application name. This lets you kill a process without knowing the PID
/f forces a process to close
/t also kills any child processes
I’ve actually made a batch file on my workstation called ks.bat. ‘ks’ = kill SpySweeper. Here it is:
taskkill /s %1 /im spysweep* /f /t
I simply open a Run dialog box, enter ‘ks computername’ and it kills SpySweeper on whatever workstation I specify.
Explore posts in the same categories: How I do IT