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
| Step | What to do |
|---|---|
| 1 | Open File Explorer and select This PC |
| 2 | Select See more (three dots) > Map network drive |
| 3 | Pick a drive letter in the Drive list |
| 4 | Enter the path in the Folder box, or select Browse |
| 5 | Check 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 format | Example 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
- Press Windows + E to open File Explorer.
- Select This PC in the left pane.
- On the command bar, select See more (the three dots), then Map network drive.
- Open the Drive list and pick an available letter.
- Type the path in the Folder box, or select Browse to find the share.
- 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
| Option | What it does |
|---|---|
| Drive | The letter the share will use, such as Z: |
| Folder | The path to the shared folder or computer |
| Reconnect at sign-in | Maps the drive again each time you sign in |
| Connect using different credentials | Lets you use a user name and password other than your current ones |
| Remember my credentials | Stops 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
- In the Map Network Drive window, check Connect using different credentials.
- Select Finish.
- Enter the user name and password in the Windows Security window.
- Check Remember my credentials if you do not want to be asked again.
- 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.
- Right-click the folder and select Show more options.
- Select Give access to, then Specific people.
- 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| Part | Meaning |
|---|---|
| Z: | The drive letter, or * for the next free letter |
| /user: | The account to connect with |
| /persistent:yes | Keep the mapping after you sign out |
| /persistent:no | Keep 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” -PersistAdd -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
- Open This PC in File Explorer.
- Right-click the mapped drive and select Show more options.
- 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
| Problem | What Pureinfotech suggests |
|---|---|
| Cannot connect by name | Use the IP address instead, though a changing IP may require reconnecting |
| Drive missing in File Explorer | It was likely mapped in an elevated session, so map it without admin rights |
| Host uses a passwordless Microsoft account | Create a local account on that device, or mapping fails |
| Drive disconnects after a restart | Map 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 to | Use |
|---|---|
| Map one drive by hand | File Explorer > This PC > Map network drive |
| Set it up the same way on several PCs | net use with /persistent:yes |
| Use PowerShell scripts | New-PSDrive with -Persist |
Related Windows 11 guides
- How to change your PC name
- How to fix Network discovery is turned off
- How to add a printer in Windows 11