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]
“ProviderName”=”Microsoft Windows Network”
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”.