Skip to content
TECHNOARTH Technology in practice.
Networking

How to map a network drive on Windows 11 (and fix it when it disappears)

Here’s how to map a network or NAS folder as a drive (Z:, S:…) on Windows 11, from File Explorer or with the net use command, with another user and without losing it after a restart.

Mapping a network drive makes a folder on another computer, server or NAS show up in This PC with a letter (for example, Z:), as if it were a disk. It’s the most practical way to reach the company folder every day.

In this article
  1. Before you start
  2. From File Explorer
  3. With the net use command
  4. The drive shows a red X
  5. FAQ

Before you start

  • Have the folder path, in the form \\SERVER\Folder or \\192.168.0.10\Folder.
  • Make sure the folder opens in File Explorer (type the path in the address bar). If you get error 0x80070035, fix that first: see how to fix error 0x80070035.

From File Explorer

  1. Open File Explorer and click This PC.
  2. In the ⋯ (See more) menu, choose Map network drive.
  3. Pick a letter and type the path under Folder.
  4. Check Reconnect at sign-in so the drive comes back every time you start the computer.
  5. If the server or NAS uses a different username and password, check Connect using different credentials.
  6. Click Finish and enter the credentials if asked, checking Remember my credentials.
Map Network Drive window with drive Z:, the folder path, Reconnect at sign-in and Connect using different credentials highlighted
Type the folder path (1), check Reconnect at sign-in (2) and, if the server or NAS needs another user, use different credentials (3).

With the net use command

Handy for setting up several computers or a sign-in script. In Command Prompt (no admin needed):

Command
net use Z: \\SERVER\Files /persistent:yes

With another user (the * makes Windows ask for the password instead of writing it out):

Command
net use Z: \\NAS\Files /user:NAS\username * /persistent:yes

To remove it: net use Z: /delete.

The drive shows a red X

The X means Windows hasn’t reconnected yet, usually because the network came up after sign-in. Double-click the drive: if it opens, everything is fine. If it asks for a password, the saved credentials changed — update them in Credential Manager (control keymgr.dll).

FAQ

The mapped drive doesn’t show up for programs run as administrator.

That’s expected: mappings are per user and session. Map it in the administrator session too, or use the \\SERVER\Folder path in the program.

Can I map a OneDrive or SharePoint folder?

Not with this feature. Use SharePoint’s Sync button or a OneDrive shortcut.

The drive is slow to open.

The computer name may be resolving slowly. Try mapping by IP address; at companies, ask IT to check DNS.

Share

About the author

TECHNOARTH Editorial Team

The TECHNOARTH newsroom: technology tutorials, guides, comparisons and news produced with AI assistance and checked against manufacturers’ official sources.