TSKILL – Windows CMD Command
End a process running in a session on a Remote Desktop Session Host (RD Session Host) server.
Tskill can be used to end any process that belongs to you, unless you are an administrator. Administrators have full access to all tskill functions and can end processes that are running in other user sessions.
TSKILL processid | processname [ /SERVER:servername] [ /ID:sessionid | /A] [ /V]
processid Process ID for the process to be terminated.
processname Process name to be terminated
(Usually the name of the executable with trimmed ".exe" suffix).
/SERVER:servername Server containing processID (default is current).
/ID or /A must be specified when using processname
/ID:sessionid End process running under the specified session (default is current).
/A End process running under ALL sessions.
/V Display information about actions being performed.
processname is limited to 18 characters.
When all processes that are running in a session end, the session also ends.
If you use the ProcessName and the /server:ServerName parameters, you must also specify either the /id:SessionID or the /a parameter. This is because potentially multiple users could be running the same program.
Terminate a running instance of notepad.
Terminate the running process #6464