Windows 10: Map Network Drive in Windows 10  

    Map Network Drive in Windows 10

    Map Network Drive in Windows 10

    How to Map Network Drive or Disconnect Network Drive in Windows 10
    Published by Category: Network & Sharing
    27 Feb 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 22,800

    Show Printable Version 


    How to Map Network Drive or Disconnect Network Drive in Windows 10

    information   Information
    When you map a network drive, you are creating a shortcut in This PC to a shared folder or computer on your network. A mapped network drive has the following characteristics:
    • It has a drive letter assigned like any other partition in your system.
    • It points to a network shared folder on another PC.
    • It points only to resources found on your network.
    • You need the username and password credentials to connect to it.

    This tutorial will show you different ways on how to map network drives or disconnect network drives for only your account in Windows 10.

    Note   Note
    The credentials used for your mapped network drives are stored in Credential Manager.
    Click image for larger version. 

Name:	Credential_Manager.png 
Views:	609 
Size:	50.5 KB 
ID:	87321


    CONTENTS:


    EXAMPLE: Mapped network drive in This PC
    Click image for larger version. 

Name:	Map_network_drive_in_This_PC-7.png 
Views:	398 
Size:	65.0 KB 
ID:	87320






    Map Network Drive in Windows 10 OPTION ONE Map Network Drive in Windows 10
    To Map Network Drive in This PC

    1. Do step 2, step 3, or step 4 below for how you would like to map a network drive in This PC.

    2. Open This PC in File Explorer, click/tap on the Computer tab, click/tap on the Map network drive button in the ribbon, and go to step 5 below. (see screenshot below)

    Click image for larger version. 

Name:	Map_network_drive_in_This_PC-1.png 
Views:	188 
Size:	55.3 KB 
ID:	87330

    3. Open File Explorer, right click or press and hold on This PC in the navigation pane, click/tap on Map network drive, and go to step 5 below. (see screenshot below)

    Click image for larger version. 

Name:	Map_network_drive_in_This_PC-1a.png 
Views:	293 
Size:	61.7 KB 
ID:	87331

    4. Open This PC in File Explorer, click/tap on the Computer tab, click/tap on Map network drive menu arrow in the ribbon, click/tap on Map network drive, and go to step 5 below. (see screenshot below)

    Click image for larger version. 

Name:	Map_network_drive_in_This_PC-2.png 
Views:	242 
Size:	62.5 KB 
ID:	87332

    5. You will now need to fill out the Map Network Drive wizard for what you want, and click/tap on Finished when done. (see screenshots below)
    • Select an unused drive letter you want to assign to the network drive.
    • Browse to and select, or type in the path, of the shared network folder. If typing the network path, you must start with \\ followed by the name of the computer that is sharing the folder you want to map, followed by \ and the name of the shared network folder.
    • Check or uncheck to automatically Reconnect at sign-in to the mapped network drive.
    • Check or uncheck Connect using different credentials to the mapped network drive depending on if the credentials for the network drive are already stored in Credential Manager from previously mapping the network drive, and if the credentials in Credential Manager are correct.


    Click image for larger version. 

Name:	Map_network_drive_in_This_PC-3.png 
Views:	146 
Size:	32.2 KB 
ID:	87351

    6. If you checked Connect using different credentials, you will now need to enter the user name and password credentials to connect to the network drive, and click/tap on OK. (see screenshot below)
    Note   Note
    If you did not check Connect using different credentials, Windows will try to connect to the network drive using the user account details from your computer in Credential Manager.

    You can check the Remember my credentials box to not have to enter credentials each time you open the mapped network drive.


    Name:  Map_network_drive_in_This_PC-5.png
Views: 10194
Size:  11.7 KB

    7. The mapped network drive will now automatically open. (see screenshot below)

    Click image for larger version. 

Name:	Map_network_drive_in_This_PC-6.png 
Views:	251 
Size:	54.6 KB 
ID:	87336






    Map Network Drive in Windows 10 OPTION TWO Map Network Drive in Windows 10
    To Map Network Drive in Command Prompt

    Note   Note
    For more details about the net use command, see: Net use - TechNet Library


    1. Open a command prompt.

    2. Type the command below you wanted to use into the command prompt, and press Enter. (see screenshot below)


    (Remains connected after next logon)
    net use <drive letter>: \\ComputerName\ShareName /user UserName Password /persistent:yes

    OR

    (Removed after next logon)
    net use <drive letter>: \\ComputerName\ShareName /user UserName Password /persistent:no

    Note   Note
    Substitute <drive letter>: in the command above with an unused drive letter (ex: "Z:" ) you want to assign the mapped network drive.

    If you like, you can substitute <drive letter>: in the command above with an asterisk * instead to have Windows automatically assign an unused drive letter to the mapped network drive.

    Substitute ComputerName in the command above with the actual computer name of the PC (ex: "readyshare") that the shared folder is located on.

    Substitute ShareName in the command above with the actual name of the network share folder (ex: "USB_Storage").

    Substitute UserName in the command above with the actual user name (ex: "UserName") for the credentials of the shared folder.

    Substitute Password in the command above with the actual password (ex: "password") for the credentials of the shared folder.

    For example:

    net use Z: \\readyshare\USB_Storage /user UserName password /persistent:yes

    OR

    net use * \\readyshare\USB_Storage /user UserName password /persistent:yes


    3. When finished, you can close the command prompt if you like.

    Click image for larger version. 

Name:	Map_network_drive_command.png 
Views:	195 
Size:	18.4 KB 
ID:	87329






    Map Network Drive in Windows 10 OPTION THREE Map Network Drive in Windows 10
    To Map Network Drive in PowerShell

    Note   Note
    For more details about the New-PSDrive command, see: New-PSDrive - TechNet Library


    1. Open PowerShell.

    2. Type the command below you wanted to use into PowerShell, and press Enter. (see screenshot below step 4)


    (Remains connected after next logon)
    Code:
    New-PSDrive -Name <drive letter> -PSProvider FileSystem -Root "\\ComputerName\ShareName" -Credential "UserName" -Persist

    OR

    (Removed after next logon)
    Code:
    New-PSDrive -Name <drive letter> -PSProvider FileSystem -Root "\\ComputerName\ShareName" -Credential "UserName"
    Note   Note
    Substitute <drive letter>: in the command above with an unused drive letter (ex: "Z:" ) you want to assign the mapped network drive.

    Substitute ComputerName in the command above with the actual computer name of the PC (ex: "readyshare") that the shared folder is located on.

    Substitute ShareName in the command above with the actual name of the network share folder (ex: "USB_Storage").

    Substitute UserName in the command above with the actual user name (ex: "UserName") for the credentials of the shared folder.

    For example:

    Code:
    New-PSDrive -Name Z -PSProvider FileSystem -Root "\\readyshare\MyBook2" -Credential "admin" -Persist

    OR

    Code:
    New-PSDrive -Name Z -PSProvider FileSystem -Root "\\readyshare\MyBook2" -Credential "admin"

    3. Enter the password of the shared folder's credentials, and click/tap on OK. (see screenshot below)

    Name:  Map_Network_Drive_PowerShell-2.png
Views: 8469
Size:  14.1 KB

    4. When finished, you can close PowerShell if you like.

    Click image for larger version. 

Name:	Map_Network_Drive_PowerShell-1.png 
Views:	148 
Size:	20.6 KB 
ID:	103802






    Map Network Drive in Windows 10 OPTION FOUR Map Network Drive in Windows 10
    To Disconnect Network Drive in This PC

    1. Do step 2, step 3, step 4, or step 5 below for how you would like to disconnect a network drive in This PC.

    2. Open This PC in File Explorer, right click or press and hold on the mapped network drive (ex: Z: ), click/tap on Disconnect, and go to step 7 below. (see screenshot below)

    Click image for larger version. 

Name:	Disconnect_network_drive_in_This_PC-1a.png 
Views:	1009 
Size:	64.9 KB 
ID:	87324

    3. Open This PC in File Explorer, select the mapped network drive (ex: Z: ), click/tap on the Computer tab, click/tap on Map network drive menu arrow in the ribbon, click/tap on Disconnect network drive, and go to step 7 below. (see screenshot below)

    Click image for larger version. 

Name:	Disconnect_network_drive_in_This_PC-2.png 
Views:	333 
Size:	71.7 KB 
ID:	87326

    4. Open File Explorer, right click or press and hold on This PC in the navigation pane, click/tap on Disconnect network drive, and go to step 6 below. (see screenshot below)

    Click image for larger version. 

Name:	Disconnect_network_drive_in_This_PC-1.png 
Views:	236 
Size:	77.2 KB 
ID:	87325

    5. Open This PC in File Explorer, click/tap on the Computer tab, click/tap on Map network drive menu arrow in the ribbon, click/tap on Disconnect network drive, and go to step 6 below. (see screenshot below)

    Click image for larger version. 

Name:	Disconnect_network_drive_in_This_PC-3.png 
Views:	157 
Size:	66.3 KB 
ID:	87327

    6. Select the mapped network drive(s) (ex: Z: ) you want to disconnect, click/tap on OK, and go to step 7 below. (see screenshot below)

    Name:  Disconnect_network_drive_in_This_PC-3b.png
Views: 10235
Size:  22.2 KB

    7. The mapped network drive(s) have now been disconnected.






    Map Network Drive in Windows 10 OPTION FIVE Map Network Drive in Windows 10
    To Disconnect Network Drive in Command Prompt

    Note   Note
    For more details about the net use command, see: Net use - TechNet Library


    1. Open a command prompt.

    2. Type net use into the command prompt, and press Enter to see a list of all your mapped network drives. (see screenshot below)

    Click image for larger version. 

Name:	Disconnect_network_drive_command-1.png 
Views:	394 
Size:	18.7 KB 
ID:	87322

    3. Type the command you want to use below into the command prompt, and press Enter. (see screenshot below)

    (Disconnect a single specific mapped network drive)
    net use <drive letter>: /Delete

    (Disconnect all mapped network drives at once)
    net use * /Delete

    Note   Note
    Substitute <drive letter>: in the command above with the actual drive letter (ex: "Z:" ) of the mapped network drive you want to disconnect.

    For example: net use Z: /Delete


    4. When finished, you can close the command prompt if you like.

    Name:  Disconnect_network_drive_command-2.png
Views: 6299
Size:  11.6 KB


    That's it,
    Shawn


  1.    19 Oct 2016 #1

    thank you for doing this tutorial.
    An issue that plagued us in earlier Windows still remains in 10 and I do not yet understand some of the solutions given in the superuser forum thread pasted below.
    The issue is simple:
    - "drives" are mapped correctly, and work well WHEN they are manually accessed.
    - Windows 10 automatically disconnects the resource when not used.
    - Waking or restarting/booting the mapped drive remains disconnected: no request has been made, therefore the shared resource is offline [Red X]

    the solution would be something to cause the mapping to be ready/available/connected at all times except for sleep [I guess... that would be permissible to most] or 'off'. In the thread below a couple of people propose 'solutions' [despite a couple of boneheaded ideas] but these either over-reach or are limited only to solving the 'connect at startup' need.

    Not solving this defeats automated routine backups [pushed from the client station in question, in this example], which can be deadly. users should not be expected to have great memories or great technical skills

    what is the RIGHT step to take to make the Mapped resource "always available", with exceptions noted above?

    On login, how do I get Windows to mount/connect a mapped network drive automatically? - Super User
      My ComputerSystem Spec


  2. Posts : 22,800
    64-bit Windows 10 Pro build 16257
    Thread Starter
       19 Oct 2016 #2

    Hello cognus,

    I find the best way to keep a mapped drive always available is to use OPTION ONE and select Reconnect at sign-in at step 5.

    The (Remains connected after next logon) command in the other options should work for you as well though.

    It's normal for the mapped drive to have a red X on it after not being used for a while, but clicking on the drive should have it be automatically connected again after a short wait sorta like waiting for a HDD to spin back up after being turned off when idle.

    I'm not aware of a way to keep a mapped drive to always stay active.
      My ComputersSystem Spec

  3.    19 Oct 2016 #3

    rats.... I figured if anyone knew, you would
    'tis ugly, but one of my smart friends said that a script could be written that would periodically tap the drive [request a non-existent file or such] to keep it awake but that feels clumsy. maybe i should just try it and see.
    I have not seen the 'disconnect interval' detailed anywhere - is there a set time/cycle for the dropping of the idle resource or does it vary by the config?
      My ComputerSystem Spec


  4. Posts : 22,800
    64-bit Windows 10 Pro build 16257
    Thread Starter
       19 Oct 2016 #4

    I haven't seen it detailed anywhere either. The script to bump the drive sounds like it could be a good workaround though.
      My ComputersSystem Spec


  5. Posts : 3,281
    10 Home x64 (1703) (10 Pro on 2nd pc)
       19 Oct 2016 #5

    Brink said: View Post
    I haven't seen it detailed anywhere either...
    Good News: I've found the details.

    Bad News: This is a setting is on the server, not the client.

    This behavior occurs because the systems can drop idle connections after a specified time-out period (by default, 15 minutes) to prevent wasting server resources on unused sessions.
    https://support.microsoft.com/en-gb/kb/297684
      My ComputersSystem Spec


  6. Posts : 22,800
    64-bit Windows 10 Pro build 16257
    Thread Starter
       19 Oct 2016 #6

    Thank you Bree.
      My ComputersSystem Spec


 

Related Threads
How do I automatically mirror files from a hard disk drive to a network folder? In this case I want to mirror the contents of an entire disk containing photos (no system files) to a shared folder on an OpenMediaVault server running on my home...
How do I connect to a shared network drive I have setup on my Windows 2012 R2 standard server at home, from my Windows 10 pro laptop is at work? Do I have to setup a vpn on windows 2012 server and connect to it from my laptop? Someone told me...
i was create map network drive in windows 10 now i need remove but idont now how removed it 60544
Someone please help me. I am trying to set up our server which we have on my sisters new laptop. when I go to 'map network drive' and click 'browse' the server called 'BGE-B-NAS' doesn't appear on the list. I have tried multiple times and nothing...
Cannot map shared network drive in Network and Sharing
I have just upgraded from Win7 Pro to Win10 Pro and have a problem with a shared network drive. Under Win7 and 8.1 I had no difficulty mapping this drive which is attached directly to my access point. However, since upgrade, I can log into the...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 20:36.
Find Us