Mapping a network drive in Windows 11 gives you a lettered shortcut (like Z: or N:) to a shared folder on another PC, server, or NAS device on your network. Once mapped, it appears in File Explorer just like a local drive and reconnects automatically every time you log in. Here is how to do it.
What You Need Before You Start
- The path to the shared folder — usually in the format
\\computername\sharenameor\\192.168.1.x\sharename - Both devices on the same network (or connected via VPN)
- Credentials for the remote device if it requires a username and password
If you are not sure of the path, ask your IT administrator or check the sharing settings on the host device.
How to Map a Network Drive
- Open File Explorer (Win + E)
- Click the three-dot menu (···) in the toolbar
- Click Map network drive
- Choose a Drive letter from the dropdown — pick any unused letter (Z: is commonly used to avoid conflicts)
- In the Folder field, type the path to the shared folder, for example:
\\OFFICE-SERVER\SharedDocs - Tick Reconnect at sign-in so the drive maps automatically each time you log in
- If the shared folder requires different credentials to your Windows login, tick Connect using different credentials
- Click Finish
If credentials are required, a login prompt appears — enter the username and password for the remote device, and optionally tick Remember my credentials to avoid being asked again.
The mapped drive appears immediately in File Explorer under This PC.
How to Map a Network Drive Using a UNC Path Directly
If you already know the full path, you can skip the wizard. In File Explorer, click the address bar and type the UNC path directly:
\\192.168.1.50\SharedDocs
Press Enter to browse the share. To map it as a drive letter from here, right-click the folder and select Map network drive.
How to Map a Network Drive Using Command Prompt
For scripting or quick setup, use the net use command. Open Command Prompt as Administrator and run:
net use Z: \\OFFICE-SERVER\SharedDocs /persistent:yes
To connect with specific credentials:
net use Z: \\OFFICE-SERVER\SharedDocs /user:domain\username password /persistent:yes
The /persistent:yes flag makes the mapping reconnect at login, equivalent to ticking Reconnect at sign-in in the GUI.
How to Disconnect a Mapped Network Drive
- Open File Explorer
- Right-click the mapped drive under This PC
- Click Disconnect
Or from Command Prompt: net use Z: /delete
Troubleshooting
The Network Drive Shows a Red X
A red X means Windows cannot reach the shared folder. Check:
- The host device (server, NAS, or PC) is powered on and connected to the network
- You are on the same network or VPN is connected
- The share name has not changed — right-click the drive and choose Properties to confirm the path
“Windows Cannot Access \\computername\share”
- Check that File and Printer Sharing is enabled on the host. Go to Control Panel → Network and Sharing Centre → Advanced sharing settings and turn on File and Printer Sharing
- Ensure the SMB protocol is enabled. In Windows 11, SMB1 is disabled by default — if connecting to a very old NAS or server, you may need to enable it via Turn Windows features on or off → SMB 1.0/CIFS File Sharing Support
- Try connecting using the IP address instead of the computer name:
\\192.168.1.50\sharename
Drive Maps but Disconnects After Restart
- Confirm Reconnect at sign-in was ticked when mapping
- If credentials have changed on the host, Windows may fail to reconnect silently. Open Credential Manager (search in Start) → Windows Credentials, and update the saved credentials for the host device
“You Do Not Have Permission to Access This Folder”
- The account you are using does not have permission on the share. Ask your administrator to grant access, or reconnect using credentials that have permission by ticking Connect using different credentials
Related Guides
- How to Use Remote Desktop in Windows 11
- How to Show File Extensions in Windows 11
- How to Set Up a VPN on a DrayTek Router
Mapping Drives to a NAS Device
If you are mapping a drive to a NAS (Network Attached Storage), the process is the same but the path format may differ slightly. Synology and QNAP NAS devices typically use the format \\nas-name\folder or \\192.168.x.x\folder, where the share name matches what you configured in the NAS admin panel.
Log in to your NAS admin interface to find the exact share names and check that SMB sharing is enabled. Most modern NAS devices support SMB2 and SMB3, which are compatible with Windows 11 without any additional configuration.
If you are using a Synology NAS, the default share for the main storage volume is typically called volume1 or a folder you have created under Shared Folders in the DSM control panel.