The tsdiscon CMD command is a Windows command line tool used to disconnect a Remote Desktop session. It is part of the Remote Desktop Services (RDS) suite of tools, which allow users to connect to and manage remote computers. With tsdiscon, users can disconnect from their Remote Desktop session without having to log out or close the session. This can be useful for quickly disconnecting from a session without having to wait for the session to time out.

Syntax and Options for tsdiscon CMD Command

The syntax for the tsdiscon CMD command is as follows:

tsdiscon [/server:ServerName] [/v] [/d] [/f]

The options for the tsdiscon CMD command are as follows:

  • /server:ServerName – Specifies the name of the Remote Desktop server to which the user is connected.
  • /v – Displays information about the command.
  • /d – Disconnects the user from the Remote Desktop session.
  • /f – Forces the user to disconnect from the Remote Desktop session.

Examples of Using the tsdiscon CMD Command

The following are examples of how to use the tsdiscon CMD command:

  • To disconnect from a Remote Desktop session on a server named “Server1”, type the following command: tsdiscon /server:Server1 /d
  • To force a user to disconnect from a Remote Desktop session on a server named “Server1”, type the following command: tsdiscon /server:Server1 /f

Conclusion

The tsdiscon CMD command is a useful tool for quickly disconnecting from a Remote Desktop session without having to log out or wait for the session to time out. It can be used with the /server, /v, /d, and /f options to specify the server, display information, disconnect, and force disconnect, respectively.

Leave a Reply