Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm wondering if it's possible to add a Network Location via the command prompt? This is not a drive letter mapping mind which can be achieved using the net use command.

share|improve this question
do you mean a connection to a unc path? you could use pushd if you don't want to use net use. pushd \\server\share or if you need to authenticate against the share and don't want to use a drive letter: net use \\server\share <pass> /user:<user> && pushd \\server\share – grub Oct 2 '10 at 14:07
No dice - this is the network locations available from Vista onwards... – noonand Nov 7 '10 at 19:16
up vote 0 down vote accepted

Here is a script how to achieve this:How Can I Create a Shortcut in My Network Places?

To use them:

  • Copy the code into a Notepad file
  • Click File menu & choose SaveAs
  • Surround the file name in double quotes including the extension (") Example "Network Place Scrript.vbs"
  • In the File Types choose All Files
  • Click the Save button
share|improve this answer
Superb, thanks for that! I had actually come across that article but neglected to circle back to this question. Fair dues to you for doing so. – noonand Mar 8 '11 at 9:19
People going to that article should read the very informative comment made by JRV in the comments section. – noonand Jan 8 '13 at 15:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.