List Terminal Services Users

TSListUsers is a command line utility to list both the currently connected and disconnected users, hostname, IP address and RDP session number on either the local or a remote Windows Terminal Server/RDP Server
To list the users, you need to have the following abilities:
- NetBios access to the server
- Permissions allowing you to Query RDP session information (if you can log into the TS, you should have this by default)
- Terminal Services/RDP should be running on the target host

TSListUsers.exe /? to get the Help text
TSListUsers.exe to query a target Terminal Server
TSListUsers.exe with no paramters to query the local host

You can download TSListUsers from here.