Network and Internet Map Network Drive in Windows 11


  • Staff
Network_drive_banner.png

This tutorial will show you how to map a network drive for your account in Windows 11.

You can Map a network drive to access shared files on it from File Explorer in Windows without having to look for it or type its network address each time.

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 to know the user name and password credentials for the network drive (share) to connect to it.


Mapped network drives are referenced in the registry locations below:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\<share name>

HKEY_CURRENT_USER\Network\<Drive letter>




Contents



EXAMPLE: Mapped network drive in File Explorer > This PC

Map_network_drive-1.png
Map_network_drive-2.png





Option One

Map Network Drive in File Explorer


1 Open This PC in File Explorer (Win+E).

2 Perform one of the following actions: (see screenshots below)
  • Click/tap on the See more (3 dots) button on the command bar, and click/tap on Map network drive.
  • Right click on This PC or Network in the navigation pane, and click/tap on Map network drive.
Map_network_drive_File_Explorer-1.png
Map_network_drive_File_Explorer-2.png

3 Perform the following actions: (see screenshots below)
  1. In the Drive list, select an available drive letter you want to assign to the network drive when mapped.
  2. In the Folder box, type the \\device name\share name or \\device IP\share name path of the network drive or folder share.

    You can also click/tap on Browse to navigate to and select the network drive or shared folder.

  3. Check or uncheck Reconnect at sign-in (persistent) to automatically connect to the mapped network drive every time you sign in to your PC.
  4. Check Connect using different credentials if you need to connect to the network drive with credentials (user name and password) other than the ones currently used.
  5. Click/tap on Finish.
Map_network_drive_File_Explorer-3.png
Map_network_drive_File_Explorer-4.png

4 If you checked Connect using different credentials or the current user name or password for the network drive is incorrect, then perform the following actions: (see screenshot below)
  1. Enter the user name and password network credentials to connect to the network drive.
  2. Check Remember my credentials if you do not want to be required to enter the user name and password network credentials each time you open the mapped network drive in File Explorer.
  3. Click/tap on OK.
Map_network_drive_File_Explorer-5.png




Option Two

Map Network Drive using Net Use command


For more Net use command usage details, see: Net use | Microsoft Docs.


1 Open Windows Terminal, and select either Windows PowerShell or Command Prompt.

2 Type the command below you want to use into Windows Terminal, and press Enter. (see screenshots below)


 Map network drive with credentials included in command

(Persistent mapped network drive with specified drive letter to keep at each sign in)
net use <drive letter>: \\DeviceName\ShareName /user:UserName Password /persistent:yes
or​
net use <drive letter>: \\DeviceIPAddress\ShareName /user:UserName Password /persistent:yes

OR​

(Persistent mapped network drive with automatically assigned drive letter to keep at each sign in)
net use *: \\DeviceName\ShareName /user:UserName Password /persistent:yes
or​
net use *: \\DeviceIPAddress\ShareName /user:UserName Password /persistent:yes

OR​

(Non persistent mapped network drive with specified drive letter to remove at sign out)
net use <drive letter>: \\DeviceName\ShareName /user:UserName Password /persistent:no
or​
net use <drive letter>: \\DeviceIPAddress\ShareName /user:UserName Password /persistent:no

OR​

(Non persistent mapped network drive with automatically assigned drive letter to remove at sign out)
net use *: \\DeviceName\ShareName /user:UserName Password /persistent:no
or​
net use *: \\DeviceIPAddress\ShareName /user:UserName Password /persistent:no

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

Substitute DeviceName in the command above with the network device name (ex: "MyCloudEX2Ultra") the folder share is on.

Substitute DeviceIPAddress in the command above with the actual IP address of the network device the folder share is on.

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

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

Substitute Password in the command above with the actual password for the network credentials of the shared folder.


map_network_drive_with_net_use_with_credentials.png
map_network_drive_with_net_use_with_credentials-2.png


 Map network drive command with prompt for credentials if required

(Persistent mapped network drive with specified drive letter to keep at each sign in)
net use <drive letter>: \\DeviceName\ShareName /persistent:yes
or​
net use <drive letter>: \\DeviceIPAddress\ShareName /persistent:yes

OR​

(Persistent mapped network drive with automatically assigned drive letter to keep at each sign in)
net use *: \\DeviceName\ShareName /persistent:yes
or​
net use *: \\DeviceIPAddress\ShareName /persistent:yes

OR​

(Non persistent mapped network drive with specified drive letter to remove at sign out)
net use <drive letter>: \\DeviceName\ShareName /persistent:no
or​
net use <drive letter>: \\DeviceIPAddress\ShareName /persistent:no

OR​

(Non persistent mapped network drive with automatically assigned drive letter to remove at sign out)
net use *: \\DeviceName\ShareName /persistent:no
or​
net use *: \\DeviceIPAddress\ShareName /persistent:no

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

Substitute DeviceName in the command above with the network device name (ex: "MyCloudEX2Ultra") the folder share is on.

Substitute DeviceIPAddress in the command above with the actual IP address of the network device the folder share is on.

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



map_network_drive_with_net_use_IP_without_credentials.png

If the password or user name network credentials are invalid or required for the network drive or share, you will be prompted to enter them one at a time and press Enter for each.


map_network_drive_with_net_use_IP_without_credentials-2.png




Option Three

Map Network Drive using New-PSDrive command


For more New-PSDrive command usage details, see: New-PSDrive | Microsoft Docs.


1 Open Windows Terminal, and select Windows PowerShell.

2 Type the command below you want to use into Windows Terminal, and press Enter. (see screenshots below)


 Map network drive without prompting for credentials

(Persistent mapped network drive to keep at each sign in)
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\DeviceName\ShareName" -Persist
or​
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\DeviceIPAddress\ShareName" -Persist

OR​

(Non persistent mapped network drive to remove at sign out)
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\DeviceName\ShareName"
or​
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\DeviceIPAddress\ShareName"

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

Substitute DeviceName in the command above with the network device name (ex: "MyCloudEX2Ultra") the folder share is on.

Substitute DeviceIPAddress in the command above with the actual IP address of the network device the folder share is on.

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


map_network_drive_with_New-PSDrive_without_credentials.png

If you get an invalid network user name or password error, then you will need to use the section below instead.


invalid_password.png


 Map network drive and prompt for credentials

(Persistent mapped network drive to keep at each sign in)
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\DeviceName\ShareName" -Credential "UserName" -Persist
or​
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\DeviceIPAddress\ShareName" -Credential "UserName" -Persist

OR​

(Non persistent mapped network drive to remove at sign out)
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\DeviceName\ShareName" -Credential "UserName"
or​
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\DeviceIPAddress\ShareName" -Credential "UserName"

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

Substitute DeviceName in the command above with the network device name (ex: "MyCloudEX2Ultra") the folder share is on.

Substitute DeviceIPAddress in the command above with the actual IP address of the network device the folder share is on.

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

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


map_network_drive_with_New-PSDrive_prompt_credentials-1.png

You will now be prompted to enter the password network credential of the network drive or folder share, and click/tap on OK.


map_network_drive_with_New-PSDrive_prompt_credentials-2.png


That's it,
Shawn Brink


 

Attachments

  • Network_drive.png
    Network_drive.png
    4.4 KB · Views: 201
Last edited:
Back
Top Bottom