Pre-mapping network drives

by Mitch Tulloch [Published on 31 Aug. 2011 / Last Updated on 31 Aug. 2011]

How to map a network drive when the share you need to connect to isn't available.

Normally when you map a network drive the share you need to connect to must be available. However, it's possible to map a drive when the share isn't available by following these steps:

  1. Map a network drive to any share available on the network. Select the option to make the connection persistent and also the option to provide other credentials (specify any user account you like for this purpose—you can even create a temporary user account if necessary).
  2. Using Registry Editor, navigate to HKCU\Network\driveletter where driveletter is the drive letter you used to map the drive.
  3. Change the value of the registry values RemotePath and UserName to match the UNC path and credentials that should be used to connect to the unavailable network share you wanted to map a drive to.
  4. Run the command rundll32.exe keymgr.dll, KRShowKeyMgr and click Add and specify the credentials for the UserName used in the previous step. If desired you can also remove the credentials cached by the first step above.

If you have feedback concerning this tip, please email me. And be sure to check out my website!

See Also

The Author — Mitch Tulloch

Mitch Tulloch is a well-known expert on Windows Server administration and cloud computing technologies. He has published over a thousand articles on information technology topics and has written, contributed to or been series editor for over 50 books.

Featured Links