|

How To Map A Network Drive In Windows 11 (2026)

You can map a network drive in Windows 11 from File Explorer in under a minute.

Open This PC, select the three-dot See more button, choose Map network drive, then pick a drive letter and enter the folder path.

This guide also covers saved credentials, the net use and PowerShell commands, and how to disconnect a drive.

Quick answer: map a network drive

StepWhat to do
1Open File Explorer and select This PC
2Select See more (three dots) > Map network drive
3Pick a drive letter in the Drive list
4Enter the path in the Folder box, or select Browse
5Check Reconnect at sign-in, then select Finish

Microsoft documents these steps in its page on file sharing over a network in Windows.

What you need before you start

You need the name or IP address of the computer or device that holds the shared folder, plus the name of the share.

ElevenForum gives the two accepted path formats.

Path formatExample pattern
By device name\\device name\share name
By IP address\\device IP\share name

Microsoft warns that if the connection fails, the other computer may be turned off or you may lack permission to open the folder.

If you are unsure of the device name, our guide to changing your PC name shows where Windows lists it.

Map the drive in File Explorer

  1. Press Windows + E to open File Explorer.
  2. Select This PC in the left pane.
  3. On the command bar, select See more (the three dots), then Map network drive.
  4. Open the Drive list and pick an available letter.
  5. Type the path in the Folder box, or select Browse to find the share.
  6. Select Finish.

Microsoft says that if you do not see the option on the ribbon, you can right-click This PC in the folder pane instead.

ElevenForum adds that right-clicking Network in the navigation pane also works.

What each option means

OptionWhat it does
DriveThe letter the share will use, such as Z:
FolderThe path to the shared folder or computer
Reconnect at sign-inMaps the drive again each time you sign in
Connect using different credentialsLets you use a user name and password other than your current ones
Remember my credentialsStops Windows asking each time you open the drive

Microsoft describes Reconnect at sign-in, and ElevenForum describes the credential options.

Use a different user name and password

  1. In the Map Network Drive window, check Connect using different credentials.
  2. Select Finish.
  3. Enter the user name and password in the Windows Security window.
  4. Check Remember my credentials if you do not want to be asked again.
  5. Select OK.

How-To Geek says the same window appears if your default credentials fail.

Find the mapped drive afterward

How-To Geek says the mapped drive appears under Network locations in This PC.

It also appears under Network in the File Explorer sidebar.

The same source notes that mapped drives are usually slower than local drives, because the files travel over your network.

Microsoft says to pick any available drive letter, so choose another from the Drive list if your first choice is not offered.

Turn on network discovery if the network looks empty

Microsoft says to open File Explorer and go to Network.

If you see Network discovery is turned off, select that banner, then select Turn on network discovery and file sharing.

For more on that message, see our guide to fixing Network discovery is turned off.

Share the folder from the other computer

If you control the computer that holds the files, Microsoft lists these steps to share a folder.

  1. Right-click the folder and select Show more options.
  2. Select Give access to, then Specific people.
  3. Choose a user, or select Everyone.

Microsoft says to type \\localhost in the File Explorer address bar to see which folders on that computer are shared.

Map a drive with the net use command

ElevenForum and Pureinfotech both document the net use command in Windows Terminal.

net use Z: \\DeviceName\ShareName /user:UserName Password /persistent:yes
PartMeaning
Z:The drive letter, or * for the next free letter
/user:The account to connect with
/persistent:yesKeep the mapping after you sign out
/persistent:noKeep it for the current session only

ElevenForum says that if you omit /user: and Windows needs credentials, it prompts you for them one at a time.

Map a drive with PowerShell

Both sources also show the New-PSDrive cmdlet.

New-PSDrive -Name “Z” -PSProvider “FileSystem” -Root “\\DeviceName\ShareName” -Persist

Add -Credential with a user name if you get an invalid user name or password error, then enter the password when prompted.

Disconnect a mapped drive

  1. Open This PC in File Explorer.
  2. Right-click the mapped drive and select Show more options.
  3. Select Disconnect.

How-To Geek also lists a Disconnect Network Drive option under the three-dot button.

Pureinfotech says the commands net use z: /Delete and net use * /Delete remove one drive or all mapped drives.

If the drive will not connect

ProblemWhat Pureinfotech suggests
Cannot connect by nameUse the IP address instead, though a changing IP may require reconnecting
Drive missing in File ExplorerIt was likely mapped in an elevated session, so map it without admin rights
Host uses a passwordless Microsoft accountCreate a local account on that device, or mapping fails
Drive disconnects after a restartMap it with /persistent:yes and refresh outdated Credential Manager entries

ElevenForum’s page carries a notice that accessing a third-party NAS with SMB in Windows 11 24H2 may fail, and it offers no workaround.

For wider connection problems, see our guide to fixing Windows 11 internet connection issues.

Which method to use

If you want toUse
Map one drive by handFile Explorer > This PC > Map network drive
Set it up the same way on several PCsnet use with /persistent:yes
Use PowerShell scriptsNew-PSDrive with -Persist

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *