The tscon CMD command is a Windows command line prompt utility that allows users to connect to a remote session on a terminal server. It is used to manage remote desktop connections and can be used to connect to a remote session from the command line. The tscon command is part of the Windows Remote Desktop Services and is available in Windows XP, Windows Vista, Windows 7, Windows 8, and Windows 10.

What Does the tscon CMD Command Do?

The tscon CMD command is used to connect to a remote session on a terminal server. It can be used to manage remote desktop connections and can be used to connect to a remote session from the command line. The tscon command can also be used to disconnect from a remote session, terminate a remote session, or reset a remote session. The tscon command can also be used to query the status of a remote session.

Syntax of the tscon CMD Command

The syntax of the tscon CMD command is as follows:

  • tscon [sessionname | sessionid] [/dest:sessionname | /dest:sessionid] [/v] [/control] [/shadow] [/public] [/delete] [/reset] [/query] [/help]

Options of the tscon CMD Command

The options of the tscon CMD command are as follows:

Option Description
sessionname The name of the session to connect to.
sessionid The ID of the session to connect to.
/dest:sessionname The name of the session to disconnect from.
/dest:sessionid The ID of the session to disconnect from.
/v Verbose mode.
/control Connect to the session and take control of it.
/shadow Connect to the session and observe it.
/public Connect to the session as a public user.
/delete Delete the specified session.
/reset Reset the specified session.
/query Query the status of the specified session.
/help Display help for the tscon command.

Examples of the tscon CMD Command

Below are some examples of how the tscon CMD command can be used:

  • To connect to a remote session on a terminal server, use the following command: tscon sessionname
  • To disconnect from a remote session on a terminal server, use the following command: tscon /dest:sessionname
  • To terminate a remote session on a terminal server, use the following command: tscon /dest:sessionname /delete
  • To reset a remote session on a terminal server, use the following command: tscon /dest:sessionname /reset
  • To query the status of a remote session on a terminal server, use the following command: tscon /dest:sessionname /query

Conclusion

The tscon CMD command is a Windows command line prompt utility that allows users to connect to a remote session on a terminal server. It can be used to manage remote desktop connections and can be used to connect to a remote session from the command line. The tscon command can also be used to disconnect from a remote session, terminate a remote session, or reset a remote session. The tscon command can also be used to query the status of a remote session.

Leave a Reply