Tscon


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

Connects to another session on a terminal server.

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

Syntax


Copy Code

tscon {<SessionID> | <SessionName>} [/dest:<SessionName>] [/password:<pw> | /password:*] [/v]

Parameters

Parameter

Description

<SessionID>

Specifies the ID of the session to which you want to connect. If you use the optional /dest:<SessionName> parameter, this is the ID of the session to which you want to connect.

<SessionName>

Specifies the name of the session to which you want to connect.

/dest:<SessionName>

Specifies the name of the current session. This session will disconnect when you connect to the new session.

/password:<pw>

Specifies the password of the user who owns the session to which you want to connect. This password is required when the connecting user does not own the session.

/password:*

Prompts for the password of the user who owns the session to which you want to connect.

/v

Displays information about the actions being performed.

/?

Displays help at the command prompt.

Remarks

Examples


Copy Code

tscon 12


Copy Code

tscon 23 /password:mypass


Copy Code

tscon TERM03 /v /dest:TERM05

Additional references

Command-Line Syntax Key

Terminal Services Command Reference