Clientname and Sessionname enviroment variable may be missing

Applies to: Windows Server 2008 R2 DatacenterWindows Server 2008 R2 EnterpriseWindows Server 2008 R2 Standard

Symptoms


When connecting remotely with Remote Desktop Connection, the environment variables CLIENTNAME and SESSIONNAME are added to each process that is started. 

If you set the Folder Option "Launch folder windows in a separate process" and later launch an application from an additional Explorer window, the application will not see these additional environment variables.

Cause


The additional Explorer window is not a child window of the parent Explorer.exe process, but launched from the system process. Therefore it does not inherit the environment from the Explorer main window.

Resolution


If your application relies on these variables, remove the folder option "Launch folder windows in a separate process".