Hello,
Scenario: a user from USER-PC connects to Remote desktop Windows 2008 R2 server SERVER-01. In SERVER-01 for that user %CLIENTNAME% is USER-PC. After that inside this remote session he starts to work with RemoteApp from another terminal Windows Server 2008 R2 SERVER-02. And in SERVER-02 for that user %CLIENTNAME% is SERVER-01. I understand, that it should be so, but is there a way to get original %CLIENTNAME% (USER-PC) from that nested session in SERVER-02?
May be is there a way to change %CLIENTNAME% environment variable? I tried "setenv" utility, but seems it does not work with Windows 7/Windows 2008. SetX does not work with volatile environment variables.