RDP - Where am I logged in?

This assumes you have a list of servers that you want to check if you have an RDP session on.

Add the servers you want to check to a file. If it's servers in an RDCM file (*.rdg file) follow this article to get that with Powershell.

Once you have the file, login to a box that has access to the servers you want to query the run this:

$a=gc C:\temp\agents.txt
foreach ($i in $a) {write-host -foregroundcolor yellow $i; qwinsta USER_NAME /server:$i}

Comments