Tskill

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

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.

Examples

To end process 6543, type:

tskill 6543

To end process "explorer" running on session 5, type:

tskill explorer /id:5

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

See Also

Concepts

Command-line reference A-Z
Command shell overview
Terminal Services commands