To map a network drive in Windows 11, press Windows logo key + E, select This PC, open the See more menu (three dots) and choose Map network drive. Pick a letter, type the share’s path, such as \\Office-PC\Shared, and select Finish. When that fails, the cause is nearly always the path, the account, the network type or, for older NAS boxes, Windows 11’s stricter security defaults, and the fixes for each follow below.
What has to be in place first
A mapped drive is a drive letter that points at a share: a folder that another PC, a server or a NAS (network storage box) makes available on the network. Mapping copies nothing. The files stay on the other device and Windows opens them over the network when you select the letter.
Most failed mappings trace back to one of these, so check them before you start:
- The folder is already shared. Someone has to share it on the other PC, or turn on file sharing on the NAS. Mapping can’t create a share.
- You have the network path. Windows uses a UNC path: two backslashes, the computer name, one backslash and the share name, as in \\ComputerName\ShareName. The device’s IP address works in place of the name, for example \\192.168.1.20\Photos. To get that number, run these steps to find the IP address on a Windows PC on the computer that shares the folder.
- You have an account the share accepts. Usually a user name and password on the other PC or NAS, which may differ from the one you use on your own PC.
- Both devices are on the same trusted network. At home, that means the same router, with the network set to Private (covered under the path fix below). A work server may require the office network or the company VPN.
Run a ten-second test before mapping: type the path into the File Explorer address bar and press Enter. If the folder opens, mapping will work. If it doesn’t, skip to the fix that matches the error.
Map the drive in File Explorer
- Open File Explorer from the taskbar folder icon or with Windows logo key + E.
- Select This PC in the left pane. Your local drives, such as Local Disk (C:), appear.
- On the command bar, select See more (three dots) and choose Map network drive. Microsoft notes that you can also right-click This PC in the left pane and find it there. Windows 11 replaced the old ribbon with this command bar, which is explained in this look at where the menu bar went in Windows 11 File Explorer.
- In the Drive list, pick any free letter. A memorable one, such as S for Shared or P for Photos, helps later.
- In the Folder box, type the path, or select Browse to look through the devices Windows can see.
- Keep Reconnect at sign-in selected to have the drive return every time you sign in, or clear it for a one-time connection.
- If the share needs a different account from your Windows sign-in, select Connect using different credentials.
- Select Finish. If Windows asks for a user name and password, enter the account for the PC or NAS that holds the share, and select Remember my credentials if you don’t want to be asked again.
A working mapping opens in a new File Explorer window and then appears under This PC with the share name and your letter. Expect large files to open more slowly than from a local disk, and the drive works only while the other device is on and reachable.
Map it with net use in Command Prompt
net use creates the same mapping as File Explorer, so a drive made either way shows up in both. It suits batch files and setting up several PCs.
Open Command Prompt normally, not with Run as administrator, because a drive mapped in an elevated window doesn’t appear in your everyday File Explorer (the last fix below explains why). If you need a reminder, here are the ways to open Command Prompt on Windows 11.
- Map a share to S: and keep it after restarts: net use S: \\Office-PC\Shared /persistent:yes
- Use another account and be asked for the password without it showing on screen: net use S: \\Office-PC\Shared * /user:Office-PC\Jordan /persistent:yes
- Let Windows pick the next free letter: net use * \\Office-PC\Shared
- List current connections: net use
From Microsoft’s net use reference: if you leave out /persistent, Windows uses the setting you used last; you can map a subfolder directly, as in net use M: \\Office-PC\Shared\Invoices; and a server or share name with spaces must be wrapped in quotation marks, or the command returns an error.
Map it with PowerShell
New-PSDrive makes a real Windows mapped drive only when you add -Persist. Without it, the drive exists inside that PowerShell window and nowhere else. Open PowerShell or Windows Terminal normally (these steps to open Windows PowerShell list the routes), then:
- Type New-PSDrive -Name “S” -PSProvider “FileSystem” -Root “\\Office-PC\Shared” -Persist and press Enter. The name must be a single letter with no colon, and the root must be a path on a different computer.
- For another account, first run $cred = Get-Credential, fill in the box that appears, then add -Credential $cred to the New-PSDrive command.
Inside a script, Microsoft recommends adding -Scope Global as well, or the drive may not outlast the script.
Fixes by symptom
Windows can’t find the network path (often error 0x80070035)
- Type the path into the File Explorer address bar. If it fails there too, the problem is the path or the network, not the mapping.
- Check the two leading backslashes and the share name’s spelling. A share name doesn’t always match the folder name on the other PC.
- Try the IP address instead of the computer name, for example \\192.168.1.20\Shared. If the address keeps changing, a DHCP reservation in your router fixes it in place.
- Set your network to Private: open Settings > Network & internet, select Wi-Fi and your network (or Ethernet), and under Network profile type choose Private network. Microsoft notes that a new network starts as Public, which hides your PC from other devices, so choose Private only on a network you trust.
- On the PC that shares the folder, open Settings, search for manage advanced sharing settings and, under Private networks, turn on Network discovery and File and printer sharing.
- If the share is on a NAS or older device that lets you in without a user name and password, Microsoft lists this same error among those Windows 11 shows when it blocks guest access. The NAS fix below applies.
The password is refused, or Windows keeps asking
The share wants an account on the device that holds it: a user account on that PC, or a user created in the NAS’s own settings. If the password changed recently, Windows may keep offering the old one. Type credential manager in the taskbar search box, open it, select Windows Credentials, remove the entry for that computer or NAS, then map again with Connect using different credentials selected.
Windows refuses a second connection to the same device
Microsoft says this is by design: once one share on a server is connected with one account, connecting another share on the same server with a different account fails with a message that multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Run net use to list connections, remove the existing one with net use S: /delete (using its letter), then map both shares with the same account. If you really need two accounts, Microsoft’s workaround is to connect the second share by the server’s IP address instead of its name, for example \\192.168.1.20\Shared, so Windows treats it as a different server.
A NAS or older device stopped working on Windows 11
Two security defaults are usually responsible. Current Windows 11 Pro releases, including version 24H2 and later, block guest connections (shares with no user name or password), and Enterprise and Education have blocked them for years. Windows 11 version 24H2 and later also require SMB signing on Pro, Enterprise and Education, while Home doesn’t. SMB is the file-sharing protocol behind network drives, and Microsoft’s SMB signing overview says requiring signing also blocks guest access. Typical messages mention that your organization’s security policies block unauthenticated guest access, or that the cryptographic signature is invalid.
Fix it on the NAS, not in Windows: open the device’s management page, create a user name and password, give that user access to the share, and turn on SMB signing there if the device offers it. Then map the drive with that account. Microsoft documents how to switch guest logons back on and how to stop requiring signing, but recommends against both because they expose your PC to spoofed malicious servers, adversary-in-the-middle attacks and ransomware. If the device can’t use accounts at all, updating its firmware or replacing it is the safer path.
The same logic applies between two Windows PCs. Microsoft’s general sharing troubleshooting includes turning off password protected sharing, but a share opened that way relies on guest access, which Windows 11 Pro, Enterprise and Education block by default on the PC that connects. Giving the person a user account on the sharing PC works on every edition.
The drive shows a red X or “could not reconnect”
After a restart, Windows sometimes tries to reconnect before the network is ready, or the other device is asleep. Double-click the drive; if the device is reachable, it usually reconnects. If it doesn’t, wake or switch on the other device, then disconnect the drive and map it again.
The drive appears in one window but not another
Microsoft notes that mapped drives are specific to a user account, and drives created in elevated sessions or with another user’s credentials aren’t visible in sessions started with different credentials. A drive mapped in an administrator Command Prompt or PowerShell window, or by another user on the same PC, won’t appear in your normal File Explorer. Map it again from a normal window while signed in as yourself.
Check the drive, then disconnect it later
Open File Explorer and select This PC: the drive should be listed with its letter. Open it, create a small test file and delete it, which proves you can write to the share, not only read it. Restart the PC; with Reconnect at sign-in selected, the drive should come back by itself.
To remove a mapping, close any files open from it, then use one of these:
- File Explorer: right-click the drive under This PC and choose Disconnect. If it’s missing, select Show more options first.
- Command Prompt: net use S: /delete, using your letter.
- PowerShell: Remove-PSDrive -Name S. Microsoft notes this deletes the mapping from the computer, not only from the current session.
Disconnecting only removes the letter. Files on the other PC or NAS aren’t touched.
On Windows 10
The Map Network Drive dialog is the same in Windows 10; only the button moves. In File Explorer, select This PC, open the Computer tab on the ribbon and choose Map network drive. The drive letter, folder, Reconnect at sign-in and Finish steps match, and net use and New-PSDrive work the same way. Windows 10 reached end of support on October 14, 2025, so a Windows 10 PC needs Extended Security Updates to keep getting security fixes.
Common questions about mapped network drives
Do I need administrator rights to map a drive?
No. A mapping is set up for your own user account, so a standard account can create one, and other people who sign in to your PC won’t see it. What you need is permission on the share, which the owner of the other PC or NAS controls.
Can I give a local folder its own drive letter?
Map network drive is for shares on other devices. For a folder on your own PC, Windows has the subst command, for example subst Z: C:\Users\Alex\Projects, and subst Z: /d removes it. Microsoft’s subst page doesn’t say the letter survives a restart, so treat it as temporary.
Can I map OneDrive?
Map network drive is meant for shared folders on your network. The OneDrive app already places your files in File Explorer, so no mapping is needed.
Is a mapped drive safe to use?
It’s as safe as the share behind it. Use a real account with a strong password rather than guest access, keep Windows and the NAS firmware updated, never expose the share to the internet, and reach work shares from outside the office only through your company’s VPN.
Once the drive is mapped, try saving a document straight to it from Word or another app; it appears under This PC in the Save As window. For setting up the share on the other PC, Microsoft’s page on file sharing over a network in Windows covers the Give access to steps.
Matthew Burleigh has been a freelance writer since the early 2000s. You can find his writing all over the Web, where his content has collectively been read millions of times.
Matthew received his Master’s degree in Computer Science, then spent over a decade as an IT consultant for small businesses before focusing on writing and website creation.
The topics he covers for MasterYourTech.com include iPhones, Microsoft Office, and Google Apps.
You can read his full bio here.