To view Tasks on Local PC.
you will see running tasks and there PID
As shown in the image below . . .
To kill any task on Local PC.
taskkill /F /IM notepad.exe
To kill multiple task on Local PC.
taskkill /F /IM notepad.exe /IM mspaint.exe
To kill task by PID on Local PC. First find out PID of your program by running
then note down the PID, its the numeric number written just after application name, for example
notepad.exe 5768 Console 0 3,644 K
so 5768 is the PID number, to kill it by PID number, use the following
taskkill /F /PID 4556