I have been using the command tsdiscon
happily for disconnecting from a remote desktop connection. I have made a "bat-file" with this line, and have assigned a shortcut to this function. Now, I have trouble using the command on Windows 10 machines.
Old usage
With tsdiscon
, I can happily sign off from RDP connection in two cases:
- When I am in the RDP session, I will exit the RDP session
- When I am at the local machine, the RDP session will also get terminated. Yet, nothing will happen to the local machine
Current problem
Lately, maybe due to Windows 10 updates, issuing this command in the remote desktop session will sign off not only from the RDP session, but also the local machine. This is a bit annoying. Correspondingly, when I issue the command tsdiscon
in both cases:
- If I am in the RDP session, I will get not only signed off from the that remote session, but also the local machine
- If I am at the local machine, I will get signed off on both machines as well.
Solution?
Can I pass in the specific session name that I would like tsdiscon
to terminate? Or, should there be a certain parameter that stipulates at which scope this command shall take effect?
So far, same command (tsdiscon
) is working in the same old way on Windows 7 machines. It become buggy when I start to use a Windows 10 machine to start remote desktop session.
Best Answer