Directly creating a Mapped Network Drive on an XP Workstation Registry

Before we start, please be aware that if you use Registry Editor incorrectly, you can cause serious problems that may require you to reinstall your operating system. Microsoft recommends that before you edit the registry, you back up the registry and understand how to restore it if a problem occurs.

Here is a trick for creating a Mapped Network Drive directly within a Windows XP Registry.

This is useful if you don’t have access to the drive at the time you intend to create the mapping. Open Notepad and copy the text below. Replace “MyServerName” and “MyMappedFolder” with the details of the new Mapping.

Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Network\L]
“RemotePath”=”\\\\MyServerName\\MyMappedFolder”
“UserName”=dword:00000000
“ProviderName”=”Microsoft Windows Network”
“ProviderType”=dword:00020000
“ConnectionType”=dword:00000001
“DeferFlags”=dword:00000004

This code will inject a persistent mapping for “L” drive into the registry. If you wish to map to another letter, substitute “HKEY_CURRENT_USER\Network\L” (above) with a different letter.

Save the Notepad file as (say) “RemotePath.reg”.  “Double click” the file and confirm that you ish to update the registry.

This will only work for the “Current User”. If you wish to create the mapping for Multiple Users, it will be easier to do this using the “Network Login Script”. 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s