To map a drive in Windows 10, open File Explorer, select This PC, then on the Computer tab select Map network drive, pick a letter, type the shared folder’s path, and select Finish. The shared folder then shows up under This PC with its own drive letter, like a disk inside your computer.
These steps are for Windows 10 and Windows 11 on a home or small office network. Windows 10 reached end of support on October 14, 2025, so it no longer gets security updates unless the PC is enrolled in Microsoft’s Extended Security Updates program. The mapping steps still work, and the Windows 11 version of each step is noted where the button sits in a different place.
What a mapped drive is (and what you need first)
A mapped drive is a drive letter, such as Z:, that points to a shared folder on another computer, a server or a network storage box (NAS). Nothing is copied to your PC. When you open Z:, Windows reaches across the network and shows you the files in that shared folder. Programs that expect a drive letter can then open and save files there too.
Before you start, check these four things:
- The folder is shared. Someone has to share the folder on the other computer or NAS first. You cannot map a folder that is not shared.
- Both devices are on the same network. For a home network, that usually means the same router, by Wi-Fi or cable.
- You know the path. Windows uses a format called a UNC path: two backslashes, the computer name, one backslash, then the share name, for example
\\OFFICE-PC\Photosor\\Server01\Scripts. You can also add a subfolder at the end, such as\\OFFICE-PC\Photos\2026. - You have permission. If the share needs a username and password, get them from whoever set up the share or from your network administrator.
If you are the person sharing the folder from a Windows 11 PC, Microsoft’s page on file sharing over a network in Windows covers it. In short: search Settings for Manage advanced sharing settings, and under Private networks turn on Network discovery and File and printer sharing. Then right-click the folder, select Show more options, choose Give access to, and pick Specific people. On that same PC, typing \\localhost in the File Explorer address bar lists the folders it is sharing, which is a quick way to read the exact share names. If you are connecting two of your own PCs for the first time, this walkthrough on setting up file sharing between two Windows 11 computers covers the network side.
Map a network drive in File Explorer (Windows 10)
This is the method most people need. It takes about a minute once you have the path.
- Press the Windows logo key + E to open File Explorer. You can also select the folder icon on the taskbar.
- In the left pane, select This PC. The window shows your drives and folders, and the ribbon at the top shows a Computer tab.
- Select the Computer tab, then select Map network drive. A window opens where you set up the drive.
- Open the Drive list and choose a letter. The list only offers letters that are not already in use, so any of them works. A letter you will remember helps, such as P: for a Photos share.
- In the Folder box, type the path, such as
\\OFFICE-PC\Photos. If you do not know the exact name, select Browse and pick the computer and folder from the list instead. - To keep the drive after you restart, check Reconnect at sign-in. Leave it unchecked for a share you only need today.
- Select Finish. If the share is password protected, Windows asks for a username and password; enter the account details for the share, which are not necessarily your own Windows sign-in.

When it works, This PC shows a new drive with the share name and the letter you chose, and double-clicking it opens the shared folder.
The same steps in Windows 11
Windows 11 replaced the ribbon, so the button moved. Open File Explorer, select This PC in the left pane, then select More on the toolbar and choose Map network drive. If the option is not in that menu, right-click This PC in the left pane and select it there. Everything after that (Drive, Folder, Browse, Reconnect at sign-in, Finish) is the same as in Windows 10. For a tour of the new toolbar and left pane, see this guide to using File Explorer in Windows 11.
Microsoft lists both versions of these steps on its Map a network drive in Windows support page.

Map a drive with the net use command
The net use command does the same job from Command Prompt. It is handy when the File Explorer button is missing, when you want to map the same drives on several PCs, or when you want to see every mapping at once.
- Select Start, type cmd, and open Command Prompt. Use a normal window, not Run as administrator (the reason is in the troubleshooting section below).
-
Type the command with your letter and path, then press Enter:
net use Z: \\OFFICE-PC\Photos /persistent:yes -
Run
net useon its own to confirm that Z: is in the list. The drive also appears under This PC.

Useful variations, all documented on Microsoft’s net use command reference:
| What you want | Command |
|---|---|
| Map and keep it after restarts | net use Z: \\OFFICE-PC\Photos /persistent:yes |
| Use the next free letter | net use * \\OFFICE-PC\Photos |
| Sign in with a different account and be asked for the password | net use Z: \\OFFICE-PC\Photos * /user:OFFICE-PC\Maria |
| Save that account’s password for next time | add /savecred to the command |
| List every mapped drive and its status | net use |
| Remove one mapped drive | net use Z: /delete |
| Remove all mapped drives | net use * /delete |
Two details from Microsoft’s reference are worth knowing. First, /persistent remembers the last choice you made: once you use /persistent:yes, later mappings are saved too until you run a command with /persistent:no. Second, typing an asterisk in place of the password makes Windows prompt for it, so the password does not sit in plain view on the screen or in a script. If a path contains a space, put the whole path in quotation marks.
Map a drive with PowerShell
PowerShell can create the same kind of mapped drive with New-PSDrive. The important part is the -Persist switch: without it, PowerShell makes a temporary drive that only PowerShell can see and that disappears when the window closes. With it, Windows creates a real mapped drive that shows up in File Explorer and in net use.
New-PSDrive -Name "Z" -PSProvider "FileSystem" -Root "\\OFFICE-PC\Photos" -Persist
To connect with a different account, Microsoft’s New-PSDrive documentation shows storing the account first with $cred = Get-Credential and then adding -Credential $cred to the command. The drive name must be a single letter, the root must be a UNC path to a different computer, and when you run the command inside a script, add -Scope Global so the drive outlives the script. To remove it later, run Remove-PSDrive -Name "Z", which deletes the mapping from the computer, not only from the current window.
Which method should you use?
| Method | Best for | Keeps the drive after restart |
|---|---|---|
| File Explorer | One or two drives on your own PC | Yes, with Reconnect at sign-in checked |
| net use | Quick changes, listing drives, other accounts | Yes, with /persistent:yes |
| PowerShell New-PSDrive | Scripts and repeatable setups | Yes, with -Persist |
If you are not sure, use File Explorer. All three create the same kind of mapping, so you can make a drive one way and remove it another way.
How to check that the mapping worked
- This PC lists the drive. It appears alongside your other drives with the share name and letter.
- The files open. Double-click the drive. If you should be able to edit files there, create a small test file and delete it to confirm you have write access, not only read access.
- net use shows it as OK. Open Command Prompt and type
net use. Each mapped drive is listed with its status, letter and remote path. - It survives a restart. If you checked Reconnect at sign-in or used
/persistent:yes, restart and open This PC again. The drive should still be there.
How to remove a mapped drive
Removing a mapping does not delete anything in the shared folder. It only removes the drive letter from your PC. Close any files you have open from the drive first.
- Command Prompt: run
net use Z: /delete, replacing Z: with your letter. - PowerShell: run
Remove-PSDrive -Name "Z".
You can map the same folder again at any time with any free letter.
When mapping fails: common problems and fixes

Windows cannot find the path. Check the spelling of the computer name and share name, and make sure the path starts with two backslashes. Microsoft notes that a failed connection often means the other computer is turned off or you do not have permission to use the folder. Turn the other device on, then try typing the path directly into the File Explorer address bar: if the folder will not open there, the problem is the share or the network, not the mapping. If the Network section of File Explorer shows a “Network discovery is turned off” banner, select it and choose Turn on network discovery and file sharing, or use the settings described in the first section.
Access is denied, or the password keeps being rejected. The share’s owner decides who can open it. Ask them to confirm your account has access, and make sure you are typing the account for that computer or NAS, which is often different from your own sign-in. Windows may also be offering an old saved password. Type credential manager in the taskbar search box, open Credential Manager, select Windows Credentials, and delete the saved entry for that computer, then map the drive again. Microsoft’s Credential Manager page explains what it stores.
The drive disappears after a restart. You probably left Reconnect at sign-in unchecked, or used net use while persistence was set to no. Remove the drive and map it again with the reconnect option or /persistent:yes. Also check that the other computer or NAS is on when you sign in.
The drive shows in File Explorer but not in an administrator Command Prompt (or the other way around). Mapped drives belong to the user session that created them. Microsoft’s PowerShell documentation states that drives mapped in an elevated (administrator) session are not visible in sessions started with different credentials. Map the drive from a normal window if you want to see it in File Explorer.
The Map network drive button is grayed out or missing. Make sure This PC is selected in the left pane. In Windows 11, look under More or right-click This PC. On a work or school PC, your organization may manage drive mappings for you; ask the IT team before changing them.
You are mapping a NAS. The steps are the same; only the path changes, using the NAS name and its shared folder. If you own a Synology box, this guide on mapping a Synology drive on Windows 11 shows where to find those names in its settings.
Do not turn off your antivirus or firewall to make a mapping work. If you suspect a security tool is blocking the connection, check that tool’s own help pages or ask whoever manages the PC.
Mapped Drive Questions
Is a mapped drive the same as a shortcut to a network folder?
Not quite. A shortcut only opens the folder in File Explorer. A mapped drive gives the folder a drive letter, so any program that saves to a drive letter (an older accounting app, a backup tool, a game launcher) can use it like a local disk.
Can I map more than one drive?
Yes. Each mapping needs its own free letter, and you can point several letters at different folders on the same computer, for example Y: for Photos and Z: for Documents. Run net use to see them all in one list.
Does mapping a drive copy the files to my computer?
No. The files stay on the other computer or NAS. If that device is off or you leave the network, the drive is still listed but its files will not open until the connection is back.
Will other people who use this PC see my mapped drive?
No. Microsoft’s documentation states that mapped network drives are specific to a user account. Each person who signs in to the PC maps their own drives, and a drive you map does not appear in their File Explorer.
Should I write my mappings down before moving to Windows 11?
Yes, it is a good habit. Run net use and note each letter and path before an upgrade or a move to a new PC. If any drive is missing afterward, you can recreate it in a minute with the same letter, so programs and shortcuts that point to that letter keep working.