We have an application that runs on our RDS/TS servers that uses Powershell to query the OS to obtain the RDP clients IP to determine which location they are at, and offer up printers available at that site. This has been working great, but we've come across an issue.
Some of our client networks happen to have overlapping subnets with us, so their network is NATTED to a non-overlapping subnet. The issue our application is having is when we query for the clients IP, we're getting the true IP of the client and not the NATTED address that is actually connected to the RDS/TS server.
It seems this information should be obtainable. While researching, I've seen several suggestions of using NETSTAT, but I need to associate that output with RDS/TS sessions.
Denny