1 User Logging into Multiple PC terminal service session: %clientname% environment variable doesn't update: why?
OS: Windows 2003 Server SP2 (with terminal services enabled).
We are keying off the %clientname% environment variable for our application to work under terminal services.
The problem is this:
A user logs into a terminal service session from PC a. Then the user doesn't log out of the terminal server session but creates another terminal service session from PC b. So now the user is logged into the same terminal server 2x but with different session id's. The problem is that the %clientname% variable doesn't update when the user logs in from PC b. The %clientname% is still reflecting that of PC a.
Is there a way to force this variable to update when the user logs into PC b? Better yet is there a better variable that is unique and static to each PC?