Article ID: 2509192 - Last Review: March 23, 2011 - Revision: 1.0

Clientname and Sessionname enviroment variable may be missing

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
Expand all | Collapse all

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".
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.

APPLIES TO
  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Standard
  • Windows 7 Enterprise
  • Windows 7 Professional
Keywords: 
KB2509192