How to find the clientname of an remote desktop session

remote desktopwindows-server-2003

We have servers on which we run tests and all users connect using the same credentials. The server allows 2 connections. What happens often is that one user is already active and the other two users keep hijacking the remaining session.

Using query session, I can find out what are the active connections. But it does not list the client machine from where the session originates, which taskmanager displays.

How do I get this information from a remote machine? I prefer a command line solution. Thanks in advance.

Best Answer

netstat -n | find "3389"

also keep in mind that session may be disconnected and so have to disable disconnected session or set it on timeout

Related Topic