In my company environment, there is this script that runs on many computers and that I sometimes ask users to kill because it is known to be blocked from time to time.
I was thinking of a way to kill him myself. I noticed that I can remotely list with pslist and then kill it with pskill .
Now the problem is that when someone launches several java applications (e.g. Eclipse, this application, another java.exe application, ...), it becomes difficult to kill the correct application in pslist, which will look something like this
javaw 4214 .. ... javaw 5000 .. ...
Etc. These are different applications, but they all start from javaw.exe. Is there a way to find out the name of the .jar on which they are running, so I can kill the process based on this?
source share