How to Map Network Drive on Windows

When you want to access a network file or folder, you have to type the UNC path (\\server\sharename) every time that you want to access. If you using this network share regularly, you would want to map the path to one of your drive letter so that you can access it easily.

For instance, I always access this UNC path (\\BKKSQL001\SQL).
The Network Path

Then, I mapped this path to drive Z:. Next time, I can access this network path by open drive Z:.
Map Network Drive

Section

There are 2 ways to achieve this: Map using Windows Explorer and Command-Line.

  1. Map Network Drive using Windows Explorer
  2. Delete Network Drive using Windows Explorer
  3. Map Network Drive using a command-line
  4. Delete Network Drive using command-line

Step-by-step to map network drive

Map Network Drive using Windows Explorer

  1. Open Windows Explorer or My Computer. Select Tools -> Map Network Drive.
    Open Map Network Drive
  2. On Map Network Drive, select Drive you want to map to and type the UNC path (\\Server\Share_name) on Folder. You can also browse the network path by select Browse.
    Note: You can enable this network drive to be mapped automatically every time you login by check on Reconnect at logon. Otherwise, uncheck it.
    Select UNC Path and Drive
  3. Also, you can map a network path using other user’s credential besides the current logged on user. This feature is really useful if you have more than one user. Then, click Finish.
    Map Network Drive using different user name
  4. If there is no error, the mapped drive will be shown.
    The Mapped Drive
  5. Now, you’ll see in My Computer, there is a new drive which pointed to the network path that you’ve just mapped to.
    Network Drives

Back to top

Delete Network Drive using Windows Explorer

  1. To delete the network drive, right click on the network drive and select Disconnect. The network drive will be deleted.
    Disconnect Network Drive
  2. Other way to delete a network drive, select Tools -> Disconnect Network Drive.
    Disconnect Network Drive
  3. On Disconnect Network Drives, it shows the list of all network drives. Select the drive that you want and click OK.
    Select a drive to disconnect

Back to top

Map Network Drive using a command-line

  1. Open command prompt. Type this command to map network path (\\BKKSQL001\SQL) to Drive Z:.
    net use Z: \BKKSQL001SQL

    Note: The “net use” is a command for map a network path to drive letter. In this example, “Z:” is the drive I want to map to and “\\BKKSQL001\SQL” is the network path I want to access.
    Map Drive from command-line

  2. You can see help on “net use” command by type
    net use /?

    net use help

  3. Also, you can map a network drive using other user’s credential by adding “/user:username password” to the previous command.
    Note: The username is the user name used for access this network path and password is the password of this user name.
    Map Network Drive using different user name

Back to top

Delete Network Drive using command-line

  1. To delete a network path, type this command
    net use Z: /delete

    Delete Network Drive from command-line

  2. You can list the existing network drive by type this command
    net use

    View list of Network Drives

Back to top

One Response

  1. Prathamesh October 13, 2009

Leave a Reply