Mapped network drive

Also known as: map network drive

On this page 7

A mapped network drive is a drive letter in Windows that points to a shared folder on another computer or server, usually reached through the SMB protocol. Instead of typing a long network path, the user opens a letter such as Z: in File Explorer, and the remote files behave much like files on a local disk.

In Windows networking, mapping is a client-side convenience layer: the share, its permissions and its data stay on the server, while the mapping only stores which letter leads to which UNC path for a particular user. The common action is often described as “map network drive”, after the command in File Explorer.

How a mapped network drive works

Every shared folder has a UNC path in the form \\server\share. Mapping links that path to a free letter through the Multiple UNC Provider and the SMB client, which forward every file request to the server over TCP port 445. The server checks share permissions and NTFS permissions against the user’s identity before it returns any data.

A mapping belongs to a single user and a single logon session. A persistent mapping is saved under the user’s registry key HKCU\Network and restored at the next sign-in, while a non-persistent one disappears at sign-out. Other users of the same computer and services running as SYSTEM do not see the drive.

The table below shows the main components involved in a mapping and the role each plays.

ComponentLocationRole
Drive letterClient sessionShort name that users and apps open
UNC pathMapping definitionReal address of the shared folder
SMB clientClient operating systemSends file operations over the network
CredentialsSession or Credential ManagerIdentify the user to the server
Share and NTFS permissionsFile serverDecide what the user may read or change
Components behind a mapped network drive

Ways to create a mapping

Windows offers several methods to map a drive, from a graphical wizard for a single user to policies that configure thousands of devices. The choice depends mainly on scale and repeatability.

MethodExampleTypical use
File Explorer wizardThis PC, then Map network driveIndividual users at home or in small offices
net use commandnet use Z: \\fs01\finance /persistent:yesQuick scripts and troubleshooting
PowerShellNew-PSDrive -Name Z -PSProvider FileSystem -Root \\fs01\finance -PersistModern automation scripts
Group Policy PreferencesDrive Maps with the Update actionDomain-joined corporate devices
Intune or logon scriptScript assigned to a user groupCloud-managed devices
Methods for mapping a network drive

Group Policy Preferences are the standard choice in domain environments because they support item-level targeting, for example mapping a finance share only for members of a finance group. The Update action is usually preferred over Replace, since it corrects a mapping without deleting it at every sign-in.

A mapped drive is not the only way to reach remote files. Each alternative offers a different balance of convenience, compatibility and resilience, as the table below shows.

OptionHow users reach filesMain advantage
Mapped network driveDrive letter such as Z:Works with old apps that expect a letter
UNC pathFull path typed or savedNo letter conflicts and works for services
Network locationShortcut under This PCVisible without consuming a letter
DFS namespaceSingle path over many serversServers can change without remapping
Cloud sync clientLocal synchronized folderWorks offline and outside the office
Mapped drive compared with alternatives

Mapping a drive to a DFS namespace path combines both worlds: users keep a familiar letter, while administrators can move data between servers without touching client configuration. For laptops, Offline Files can cache selected content from a mapped share.

Common problems and their causes

Most issues with mapped drives come from timing, credentials or security context rather than from the share itself. The table lists the problems administrators see most often.

SymptomLikely causeFix
Red X on the driveReconnect attempted before network was readyOpen the drive or enable waiting for the network at sign-in
Drive missing in elevated appsUAC splits the user into two tokensMap in the elevated session or set EnableLinkedConnections
Access deniedWrong credentials or missing permissionCheck Credential Manager and share permissions
Mapping fails on an old NASDevice only supports SMB 1.0Upgrade the device firmware instead of enabling SMB 1.0
Scheduled task cannot find Z:Task runs in another sessionUse the UNC path in the task
Troubleshooting mapped network drives

The UAC split-token behavior surprises many users: a drive mapped in a normal window is invisible to an elevated command prompt, because Windows treats the two tokens as separate logon sessions. The registry value EnableLinkedConnections shares mappings between them, but it should be applied deliberately.

Security considerations

A mapped drive makes a share constantly reachable by any process running as the user, including malware. Ransomware routinely encrypts every mapped drive letter it finds, so broad write access through many mappings increases the damage of a single infected laptop.

  • Apply least privilege on the share and the file system, not only on the mapping.
  • Map only the shares a role needs, and avoid mapping entire server volumes.
  • Keep SMB 1.0 disabled and prefer SMB 3.x with signing or encryption for sensitive data.
  • Avoid saving passwords for shares that domain authentication can cover.
  • Protect data with snapshots or backups that users cannot modify through the mapping.

A plain-language summary

A mapped network drive is like a labeled shortcut to a shared cabinet in another room. The files stay in that cabinet, on a server or another computer, but your computer shows them under a letter such as Z, next to your own C drive.

You open and save files as usual. The key point is that nothing is copied to your computer: if the network or the server is unavailable, the drive stops working until the connection returns.

An example from practice

An engineering office with 25 employees keeps its project drawings on a Windows file server. The administrator creates a Group Policy object that maps P: to the project share and F: to the finance share, using item-level targeting so only the accounting group receives F:.

Each morning, employees sign in and find both drives ready. Older CAD software that accepts only drive letters opens drawings from P: without changes. When the office later migrates the data to a new server behind a DFS namespace, the administrator edits one policy setting, and all workstations follow the new location at the next sign-in without any visit to individual desks.