silver2kgt
Technical User
Here is my scenario.
We are wanting to implement roaming profiles, but all of our users in remote branches will be logging in through a terminal server session. What I need is the IP address of the client used to connect to that session so that I can determine what branch they are logging in from to properly assign printers. Each branch is on a different network ie. clients at branch a are 10.1.111.x, the ones at branch b are 10.1.112.x, etc. I can't do this on the branch PC as when the user logs in their login information is passed into an RDP session and logged onto one of our terminal servers. When they close this session, they are logged off of the branch PC.
I have searched on Microsoft's site for WMI classes that I could query once a user connects to a session and there was one called Win32_TSGatewayConnection that looked exactly like what I need, but doesn't seem to return anything (not implemented yet?). Can anyone think of another way to do this or am I out of luck?