How to Map a Network Drive in Windows 11

If you have a Network Attached Storage (NAS) drive, a shared folder on a second PC, or a company server, accessing those files by constantly typing IP addresses into the Run dialogue is tedious. The solution is to map the network drive directly into Windows 11.

Mapping a network drive assigns a permanent drive letter (like Z: or X:) to a shared folder on your local network. Once mapped, the folder appears in File Explorer exactly like a standard internal hard drive or plugged-in USB stick. Here is how to set it up.

What You Need Before Starting

Before you begin, ensure you have the following information:

  • The network path: This usually looks like \\ServerName\SharedFolder or \\192.168.1.50\SharedFolder.
  • Login credentials: The username and password required to access the shared folder. (If you are connecting to a home NAS, this is the NAS admin or user account, not your Windows login).
  • Network Discovery enabled: Your Windows 11 PC must be set to a “Private” network profile, and Network Discovery must be turned on in the Network & Internet settings.

Method 1: Mapping a Drive via File Explorer (The Visual Way)

The standard and most user-friendly way to map a drive is through the Windows 11 File Explorer interface.

  1. Open File Explorer (press Windows Key + E).
  2. In the left-hand navigation pane, click on This PC.
  3. Look at the top command bar. Click the three horizontal dots (See more) to open the drop-down menu.
  4. Select Map network drive.
  5. A new window will appear. First, select a Drive letter from the drop-down menu. Letters towards the end of the alphabet (like Z, Y, or X) are usually best, as they will not conflict with USB drives you plug in later.
  6. In the Folder box, type the network path (e.g., \\192.168.1.50\Public). Alternatively, click Browse to search your local network visually.
  7. Ensure the box for Reconnect at sign-in is checked. This ensures the drive reconnects automatically every time you reboot your PC.
  8. Check the box for Connect using different credentials. (Even if your Windows login matches the server login, checking this box forces a clean authentication prompt, which prevents many common connection errors).
  9. Click Finish.
  10. A Windows Security prompt will appear. Enter your network username and password, check Remember my credentials, and click OK.

The shared folder will immediately open in a new window, and the drive letter will now permanently appear under “This PC”.

Method 2: Mapping a Drive via the Command Prompt (The Fast Way)

If you prefer the command line, or if you are writing a login script for an office environment, you can map a drive instantly using the net use command.

  1. Click the Start button, type cmd, and press Enter to open the Command Prompt.
  2. Use the following syntax to map the drive:
    net use Z: \\ServerName\SharedFolder /persistent:yes
  3. If the server requires a username and password, Windows will prompt you to enter them directly in the terminal window.
  4. If you want to include the password in the command itself (useful for scripts, but less secure), use this syntax:
    net use Z: \\ServerName\SharedFolder Password123 /user:AdminUser /persistent:yes

How to Disconnect a Mapped Network Drive

If you sell your NAS, change servers, or simply no longer need access to the shared folder, you should disconnect the drive so Windows does not waste time trying to reconnect to a dead link during startup.

  1. Open File Explorer and click This PC.
  2. Right-click on the mapped network drive (e.g., Drive Z:).
  3. Select Disconnect from the context menu.

The drive letter will immediately disappear, and the connection will be severed. By mapping your frequently used network folders, you can dramatically speed up your workflow and manage remote files just as easily as local ones.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.