I have a windows server 2003 R2 PC which is accessed by more than 4 users simultaneously through remote desktop.
In server if I open task manager users tab, I can see which user is active and from which device they have connected.
But I wanted the same in any commands to log in a text file. So I tried the following commands.
Batchfile
1. Query session
Batchfile
2. qwinsta
But both are not displaying the device name from which they are connected. Is there any other command or switches available to get device name of RDP session?