Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Clientname and Sessionname enviroment variable may be missing


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


Resolution

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

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2509192
Revision : 1
Created on : 1/7/2017
Published on : 3/23/2011
Exists online : False
Views : 704