Tsdiscon


Applies To: Windows Vista,Windows Server 2008 R2,Windows Server 2008

Disconnects a session from a terminal server.

For examples of how to use this command, see Examples.

Syntax


Copy Code

tsdiscon [<SessionID> | <SessionName>] [/server:<ServerName>] [/v]

Parameters

Parameter

Description

<SessionId>

Specifies the ID of the session to disconnect.

<SessionName>

Specifies the name of the session to disconnect.

/server:<ServerName>

Specifies the terminal server that contains the session that 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.

Remarks

Examples


Copy Code

tsdiscon


Copy Code

tsdiscon 10


Copy Code

tsdiscon TERM04

Additional references

Command-Line Syntax Key

Terminal Services Command Reference