Home > Commands N-Z > Commands T

TSDISCON


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Disconnects a session from a terminal server.


Syntax

TSDISCON /?

TSDISCON session_id | session_name [/server:server_name] [/v]


Parameters
session_id (NT2000)
The ID of the session to disconnect.
session_name (NT2000)
The name of the session to disconnect.

Switches
/? (NT2000)
Displays help.
/server:server_name (NT2000)
Specifies the terminal server containing the session you want to disconnect. Defaults to the current terminal server.
/v (NT2000)
Displays information about the actions being performed.


Related

none.


Notes

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.


Examples

To disconnect the current session, type:

    TSDISCON

To disconnect session 8, type:

    TSDISCON 8

To disconnect the session named TERM03, type:

    TSDISCON TERM03

Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NT2000 NTXP NT2003

Last Updated: 2006/07/01
Direct corrections or suggestions to: Rick Lively