Shortcuts Created Under Windows NT 4.0 Resolve to UNC Paths

Last reviewed: February 9, 1998
Article ID: Q158682
The information in this article applies to:
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0

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 on how to do this, view the "Restoring the Registry" online Help topic in Regedit.exe or the "Restoring a Registry Key" online Help topic in Regedt32.exe.

SYMPTOMS

A Windows NT 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 onto a computer other than the one where the shortcut was created.

CAUSE

Shortcuts created on a computer automatically embed an UNC (Universal Naming Convention) 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 via a local path. As a result, the user trying to execute the shortcut is prompted for the administrator's password of the computer that created the link.

RESOLUTION

Apply the updated Shell32.dll from the latest Windows NT 4.0 service pack and then change the registry setting using one of the following methods for either the computer or the user. This will change all existing shortcuts that are showing the UNC path to the local relative path.

Use System Policy editor to create a policy file that is distributed when the user logs onto the domain. The advantage of distributing the registry change using Windows NT Policies is that users receive the change when roaming.

If the systems are in a workgroup environment, apply the policy to each user on a computer. Since the policy change is on a per-user basis and the policies key requires administrative rights, in order to change the registry setting the user must have administrative rights.

Alternately, the Microsoft Windows NT Server Resource Kit Version 4.0, Supplement One ships with a utility called Shortcut.exe which modifies the actual shortcut file and disables automatic link tracking of network shortcuts on a per shortcut basis.

Distribute the Change Per Computer

NOTE: These steps require a hotfix (Post SP3) in addition to the latest service pack. Service Pack 3 must be applied to Windows NT 4.0 prior to applying this fix.

This fix should have the following time stamp:

   06/30/97  08:20p             1,864,976 Shell32.dll (Alpha)
   06/30/97  09:20p             1,277,712 Shell32.dll (Intel)

NOTE: If you are using Internet Explorer 4.0 and the Active Desktop, do not install the Shell32.dll because it may cause IE and Windows NT to not function correctly. However, the registry changes are still available. If you are using Internet Explorer 4.0 without Active Desktop, install Shell32.dll as described.

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" online Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" online Help topics in Regedt32.exe. Note that you should back up the registry before you edit it.

To change these 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 most logoff and logon before the change takes place.

Distribute Change to Users in the Domain

In a domain environment, the change can be applied using Windows NT Policies. Windows NT Service Pack 2 also ships with the appropriate Winnt.adm file that contains the registry setting to enable the policy change.

  1. Start System Policy Manager.

  2. Enable: Default User\Windows NT Shell\Restrictins\Disable Link file tracking

  3. Consult System Policy Editor Help or the Resource Kit for more information on using the System Policy Editor.

Change an Individual User

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" online Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" online Help topics in Regedt32.exe. Note that you should back up the registry before you edit it.

To change these parameters, use the following procedure:

  1. Run Registry Editor (Regedt32.exe).

  2. From the HKEY_CURRENT_USER subtree, go to the following key:

          \Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    

  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 most logoff and logon before the change will take place.

MORE INFORMATION

After the Shell32.dll 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.

STATUS

Microsoft has confirmed this to be a problem in Windows NT version 4.0. A supported fix is now available, but has not been fully regression tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Technical Support for more information.

Keywords          : kbbug4.00 kbfix4.00.sp2 NTSrvWkst ntui kbnetwork kbui
Version           : WinNT:4.0
Platform          : winnt
Issue type        : kbbug
Solution Type     : kbfix


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.