text stringlengths 0 4.23k |
|---|
To display, one screen at a time, the files in all the directories on drive C, type: |
tree c:\ /f | more |
To print a list of all the directories on drive C to a file, type: |
tree c:\ /f > <driveletter>:\<filepath>\filename.txt |
tscon |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Connects to another session on a Remote Desktop Session Host server. |
Important |
You must have Full Control access permission or Connect special access permission to connect to another session. |
Note |
To find out what's new in the latest version, see What's New in Remote Desktop Services in Windows Server. |
Syntax |
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, you can also specify the name of the current session. |
<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. You can also use this parameter to connect the session of another user to a different 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. |
<sessionID> |
/dest:<sessionname> |
<sessionname> |
<sessionname> |
<pw> |
* |
Remarks |
This command fails if you don't specify a password in the /password parameter, and the target session belongs to a user other than the current one. |
You can't connect to the console session. |
Examples |
To connect to Session 12 on the current Remote Desktop Services Session Host server, and to disconnect the current session, type: |
tscon 12 |
To connect to Session 23 on the current Remote Desktop Services Session Host server using the password mypass, and to disconnect the current session, type: |
tscon 23 /password:mypass |
To connect the session named TERM03 to the session named TERM05, and then to disconnect session TERM05, type: |
tscon TERM03 /v /dest:TERM05 |
tsdiscon |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Disconnects a session from a Remote Desktop Session Host server. If you don't specify a session ID or session name, this command disconnects the current session. |
Important |
You must have Full Control access permission or Disconnect special access permission to disconnect another user from a session. |
Note |
To find out what's new in the latest version, see What's New in Remote Desktop Services in Windows Server. |
Syntax |
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 Remote Desktop Session Host server is used. This parameter is required only if you run the tsdiscon command from a remote server. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.