Article ID: 257174 - View products that this article applies to.
This article was previously published under Q257174
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/prodtech/IIS.mspxFor more information about IIS 7.0, visit the following Microsoft Web site:
This article contains information about using mapped network drives for Web sites and virtual directories with IIS.
When you create or administer a Web site or virtual directory, the option to browse for the physical location where the content is stored for that site or virtual directory includes mapped drives. This may be interpreted as a way to keep the content on a network share accessible through the mapped drive; however, because the nature of drive mappings, this is not a viable option. If you prefer to keep your content on a remote computer, then create the Web site or virtual directory with a universal naming convention (UNC) path to point to the share on the remote computer.
Drive mappings are an extension to the net use command and are created on a per-user basis. That is, the entries for drive mappings exist under the Hkey_Current_User registry key for the user who maps to the network drive. Also, drive mappings are created with the credentials of the user who is currently logged on.
A possible work around is to log in to the console of the Web server as a user who may need to be authenticated through the Web server, and then create the mapped drive as a persistent drive (Reconnect at Logon) for that user account. This can cause performance degradation because the user account that you are connecting with may need to be authenticated twice for access, once by IIS and a second time to create the mapped drive.
The preferred method of accessing content for the Web server that exists on a remote computer is to use shares that follow the universal naming convention (UNC). For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/222069/EN-US/ )IIS 4.0 Requires Username and Password When Using a Remote Computer
(http://support.microsoft.com/kb/207671/EN-US/ )Accessing Network Files from IIS Applications
For additional information on mapped drives and the net use command, click the article numbers below to view the articles in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/135665/EN-US/ )Connection Established in MS-DOS Session Is Not Reconnected
(http://support.microsoft.com/kb/149984/EN-US/ )Accessing Network Drives Created in Services Under Windows NT
(http://support.microsoft.com/kb/103390/ )Network access validation algorithms and examples for Windows Server 2003, Windows XP, and Windows 2000
(http://support.microsoft.com/kb/154738/EN-US/ )Connect Network Drive Caches First Credentials Supplied
Contact us for more help
Connect with Answer Desk for expert help.