Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize


Disconnects a session from a terminal server.


tsdiscon [{SessionID | SessionName}] [/server:ServerName] [/v]


SessionID   : The ID of the session to disconnect.

SessionName   : The name of the session to disconnect.

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

/v   : Displays information about the actions being performed.

/?   : Displays help at the command prompt.


  • You must have Full Control permission to disconnect another user from a session.

  • If no session ID or session name is specified, tsdiscon disconnects the current session.

  • Any applications that were running when you disconnected the session are automatically running when you reconnect to that session with no loss of data. Use Reset session to end the running applications of the disconnected session, but be aware that this might result in loss of data at the session.

  • The /server parameter is required only if you use tsdiscon from a remote server.

  • The console session cannot be disconnected.


To disconnect the current session, type:


To disconnect session 10, type:

tsdiscon 10

To disconnect the session named TERM04, type:

tsdiscon TERM04

Formatting legend




Information that the user must supply


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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft