Shortcuts Created Under Windows NT Terminal Server 4.0 Resolve to UNC Paths

ID: q195887


The information in this article applies to:



IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

SYMPTOMS

A Windows NT Terminal Server user may click a program's shortcut and be prompted to "Enter Network Password," yet the properties of the shortcut indicate a relative path to the local computer.

This problem may become evident where server-based profiles are used and the user logs on to a computer other than the one where the shortcut was created.


CAUSE

Shortcuts created on a computer automatically embed a Universal Naming Convention (UNC) path such as \\<computer>\admin$ in the .lnk file. The default shortcut resolution method is to resolve the link to the original location of the file (the "absolute" path) before looking at another path of where that file may or may not exist (the secondary or "relative" path). In this case the UNC path to the original file is always reachable, which prevents the link from being resolved through a local path. As a result, the user who tries to use the shortcut is prompted for the administrator's password of the computer that created the link.


RESOLUTION

To resolve this problem, obtain the latest service pack for Windows NT Server 4.0, Terminal Server Edition. For additional information, please see the following article in the Microsoft Knowledge Base:

Q152734 How to Obtain the Latest Windows NT 4.0 Service Pack

Apply the updated Shell32.dll from the hotfix package and then change the registry setting following the method described below. This registry change must be made on the terminal server computer. This will change all existing shortcuts that are showing the UNC path to the local relative path, and will effect all terminal server clients that connect to the Windows Terminal Server.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).


To change the registry parameters, use the following procedure:

  1. Run Registry Editor (Regedt32.exe).


  2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
    \Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    NOTE: Add the Explorer subkey, if it does not exist.


  3. Click Add Value on the Edit menu.


  4. Add the following value:
    Value Name: LinkResolveIgnoreLinkInfo
    Data Type: REG_DWORD
    Data: 1 (enable)


  5. Click OK.


  6. Exit Registry Editor.


  7. The user must log off and log on before the change takes place.



STATUS

Microsoft has confirmed this to be a problem in Windows NT Server 4.0, Terminal Server Edition. This problem was first corrected in Windows NT Server 4.0, Terminal Server Edition Service Pack 4.


MORE INFORMATION

After the Shell32.dll file has been applied, the system resolves the relative path to the shortcut as expected. If the shortcut does not have a relative path and contains the UNC name to the executable or file to which the user does not have rights or cannot connect, the following message is displayed:

The file or folder "<filename>" that this shortcut refers to cannot be found.
For additional information about the issue resolved by this update to this component, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q158682
TITLE: Shortcuts Created Under Windows NT 4.0 Resolve to UNC Paths

Additional query words:


Keywords          : kbbug4.00 kbfix4.00 TSESP4Fix 
Version           : winnt:4.0
Platform          : winnt 
Issue type        : kbbug 

Last Reviewed: April 9, 1999