Tskill

Ends a process.

Syntax

tskill {ProcessID | ProcessName} [**/server:**ServerName] [{/id:SessionID | /a}] [/v]

Parameters

ProcessID   : The ID of the process you want to end.

ProcessName   : The name of the process you want to end. You can use wildcards to specify this parameter.

/server: ServerName   : Specifies the terminal server containing the process you want to end. Otherwise, the current terminal server is used.

/id: SessionID   : Ends the process running in the specified session.

/a   : Ends the process running in all sessions.

/v   : Displays information about the actions being performed.

/? : Displays help at the command prompt.

Remarks

  • You can use tskill to end only those processes belonging to you, unless you are an administrator. Administrators have full access to all tskill functions and can end processes running in other user sessions.

  • When all processes running in a session end, the session also ends.

Formatting legend

Format

Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Command-line reference A-Z

Terminal Services commands