Map a folder to your network drive in three steps

To add a folder on your PC to a network drive, you use Windows' built-in mapping feature to create a shortcut that points to that folder from across your network. This makes the folder appear as a separate drive letter in File Explorer, so anyone on your network with permission can access it without hunting through your PC's full directory. The process takes about five minutes and requires only that your PC and the other computers are on the same network.

The folder you're sharing must be on a PC that stays powered on while others need to access it — if your computer sleeps or shuts down, the network drive becomes unavailable. Windows handles all the technical work; you just tell it which folder to share and who can see it.

Key Takeaways

  • You must enable sharing on the folder itself before other computers can map to it, which you do through the folder's Properties menu.
  • Windows creates a network address for your folder that looks like \\YourComputerName\FolderName, and other computers use this address to connect.
  • Mapping a network drive assigns it a letter (like Z:) in File Explorer, making it behave like a regular hard drive for anyone who connects to it.
  • You can restrict who sees the folder by setting share permissions, though a password on your Windows account provides the main security layer.

Enable sharing on the folder you want to add

Before anyone can access your folder from another computer, you must turn on sharing for that specific folder. Right-click the folder you want to share, then select Properties from the menu. Click the Sharing tab at the top of the window.

Click Share to open the sharing dialog. A list appears showing user accounts on your PC. Select the account name of anyone who should access this folder, then click Add. Set their permission level using the dropdown next to their name — choose Read if they should only view files, or Read/Write if they should also create, edit, or delete files. Click Share when you're done. Windows displays the network path to your folder, which looks like \\YourComputerName\FolderName — write this down or take a screenshot.

If you see a message saying "Network discovery and file sharing are off," click the notification and turn both on. Windows will ask for confirmation; select Yes, turn on network discovery and file sharing for all public networks. This allows your PC to be found on the network and lets others connect to your shared folder.

Map the network drive from another computer

On the computer that needs to access the shared folder, open File Explorer and right-click This PC in the left sidebar. Select Map network drive. A dialog opens asking for a drive letter and the network path.

Choose a drive letter from the dropdown — most people use Z: or another letter near the end of the alphabet to avoid conflicts with existing drives. In the Folder field, type the network path you wrote down earlier, for example \\DESKTOP-ABC123\MySharedFolder. If you don't remember the exact name, you can click Browse to search for it, though typing is usually faster if you have it written down.

Check the box for Reconnect at sign-in if you want Windows to automatically connect to this drive every time you start the computer. Click Finish. If Windows asks for a username and password, enter the Windows account credentials from the PC that's sharing the folder — this is the account you selected in the sharing permissions step. After a few seconds, the mapped drive appears in File Explorer with the letter you chose.

Troubleshoot if the connection fails

If you see an error message when mapping the drive, the most common cause is a typo in the network path. Double-check the computer name and folder name against what Windows showed you in the sharing dialog. Computer names are case-insensitive, but they must be spelled exactly right.

If the computer name contains spaces or special characters, Windows sometimes has trouble finding it. Try using the computer's IP address instead of its name. On the PC that's sharing the folder, open Command Prompt (search for "cmd" in the Start menu), type ipconfig, and press Enter. Look for the line labeled IPv4 Address — it looks like 192.168.1.100. Use this number in place of the computer name: \\192.168.1.100\FolderName.

If you still can't connect, make sure both computers are on the same Wi-Fi network or connected to the same wired network. Computers on different networks or behind different routers cannot see each other's shared folders. Also verify that the PC sharing the folder is powered on and not in sleep mode — Windows will not connect to a sleeping computer.

Set permissions to control who can access the folder

Sharing permissions determine what each person can do with the files. When you first shared the folder, you assigned Read or Read/Write access to specific user accounts. You can change these permissions anytime by going back to the folder's Properties, clicking the Sharing tab, and selecting Advanced Sharing.

Click Permissions to see detailed options. You can allow or deny specific actions like reading, writing, or deleting files for each user or group. Most setups only need Read and Read/Write, but advanced users sometimes restrict further. Keep in mind that the main security layer is the Windows password on the account you're sharing from — if someone knows that password, they can access the folder regardless of share permissions.

To stop sharing the folder entirely, go back to Properties, click the Sharing tab, select Advanced Sharing, and uncheck Share this folder. Anyone who had the drive mapped will see an error when they try to access it, though the mapped drive letter remains in their File Explorer until they delete it.

Disconnect or remove a mapped network drive

If you no longer need access to a mapped drive, right-click it in File Explorer and select Disconnect. This removes the drive letter from your computer but does not affect the sharing on the original PC — the folder remains shared for anyone else who has it mapped.

If you want to stop sharing the folder entirely so that no one can access it, go to the PC where the folder is located, open the folder's Properties, click Sharing, and select Advanced Sharing. Uncheck Share this folder and click Apply. All mapped connections to that folder will immediately stop working.

Frequently Asked Questions

Do I need to be on the same Wi-Fi network?

Yes, both computers must be on the same local network. If you're at home, they should both connect to the same Wi-Fi router or be plugged into the same wired network. Computers on different networks or connected through a VPN may not see each other's shared folders without additional configuration.

What if I forget the computer name?

On the PC that's sharing the folder, right-click the Start button and select System. Look for the line labeled Device name — that's your computer name. You can also open Command Prompt, type hostname, and press Enter to see it instantly.

Can I map a network drive on a Mac or Linux computer?

Yes, but the steps differ. On a Mac, open Finder, click Go in the menu bar, select Connect to Server, and enter the network path. Linux users typically use the file manager's network browsing feature or the command line with mount or smbclient. The Windows PC sharing the folder works the same way regardless of what device connects to it.

Is sharing a folder over the network secure?

Network sharing is reasonably secure if you use a strong Windows password on the account that owns the folder. Anyone on your local network who knows that password can access the folder, so don't share your password. For sensitive files, consider using encryption or storing them on an external drive instead.

What happens if the PC sharing the folder goes to sleep?

The mapped drive becomes inaccessible, and anyone trying to open it will see an error. To prevent this, adjust the power settings on the PC that's sharing the folder: go to Settings > System > Power & battery, and set the screen to turn off after a longer period while keeping the PC awake. Alternatively, disable sleep mode entirely for that computer.