Microsoft Knowledge Base Email Alertz

Home Folder searched when starting an Application on Terminal Server

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 961805 - Last Review: January 7, 2009 - Revision: 1.0

Home Folder searched when starting an Application on Terminal Server

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you. Visit the Windows Vista Solution Center
Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Symptom



You may notice that when a process is started within a session running on a Terminal Server (TS) in Application Mode, the home folder of the user might be searched under following conditions:

 

·         If the process needs to load a DLL which is not local to the .exe or in system directories but in the path,

·          A TS Home Folder on the network is specified for the user, the search for the DLL also goes to the network location of the TS home folder.

 

Cause



This will happen if the process needs to load a DLL file which is not local to the .exe or in system directories path.  If the user has a TS home folder on the network specified for the user, the search for the DLL will also search the network location of the user’s TS Home folder.

More Information



“GetWindowsDirectory” API returns on TS in application mode the \windows folder which points to a network share when a TS Home folder is set in users AD properties.

 

Workaround for non-TS aware applications - depending on application behavior - might be to set a Flags value: "Do not substitute user Windows directory": 0x00000400 as per KB186498

 

If an application uses the GetWindowsDirectory API to query the Windows directory path, Terminal Server returns the user's home directory.

For more information see the following Microsoft Knowledge base article:

186498  Terminal Server application integration information

http://kbalertz.com/186498 (http://support.microsoft.com/default.aspx?scid=kb;en-us;186498)

 

 

Search order on process startup is:

• The directory from which the application loaded.

                Note The current working folder is typically the user's home folder.

• The current directory.

• The system directory.

• The 16-bit system directory.

• The Windows directory.

Note GetWindowsDirectory function used to get the path of this directory.

• The directories that are listed in the PATH environment variable.

For more information about the search order process at start up see the following Microsoft Knowledge base article:

306850  Programs start slowly or slow logon if the network connection to your home folder is slow

http://kbalertz.com/306850 (http://support.microsoft.com/default.aspx?scid=kb;en-us;306850)

 

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

APPLIES TO
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Windows Server 2008 Standard
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
Keywords: 
kbnomt kbrapidpub KB961805
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate