Windows Storage

Map a network drive

Practical Windows guide: map a network drive without the usual guesswork.

10 min read Beginner Updated 9 Jun 2026

Step-by-step guide

Work through each section in order. Stop when your issue is resolved — you do not need every step for every situation.

What you will achieve

Map a network share to a drive letter in Windows 11/10 so it appears in File Explorer and reconnects automatically at sign-in.

1) Map from File Explorer

  1. Open File Explorer → right-click This PCMap network drive (or Show more options first on Windows 11).
  2. Choose a drive letter (e.g. Z:).
  3. Enter the UNC path: \\server\share or \\192.168.1.10\Documents.
  4. Tick Reconnect at sign-in and Connect using different credentials if the share needs another username.

2) Map via command line

net use Z: \\server\share /user:DOMAIN\username * /persistent:yes

Enter password when prompted. /persistent:yes saves the mapping across reboots.

3) Map via PowerShell

New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\server\share" -Persist -Credential (Get-Credential)

4) Troubleshoot failed mappings

  1. Run ping server and net view \\server to confirm connectivity and share visibility.
  2. Check Settings → Network & internet → Advanced sharing settings — enable file sharing on Private networks.
  3. Remove stale mappings: net use Z: /delete then remap with correct credentials.

5) Group Policy drive maps (Pro domain)

  1. User Configuration → Preferences → Windows Settings → Drive Maps — deploy consistent mappings in AD environments.

6) Reconnect at logon failures

  1. Stored credentials: Control Panel → Credential Manager → Windows Credentials — update stale passwords for \server entries.

7) Enable SMB client features

  1. Control Panel → Programs → Turn Windows features on → SMB Direct for RDMA NAS on datacenter gear.
  2. Confirm SMB signing not blocking old NAS — adjust via Set-SmbClientConfiguration in lab only.

8) UNC vs mapped drive in scripts

  1. Scheduled tasks running as SYSTEM cannot see user mapped drives — use UNC paths in automation.

9) Persist credentials for batch jobs

cmdkey /add:server /user:DOMAIN\user /pass:password
net use Z: \\server\share /persistent:yes

Prefer Group Managed Service Accounts in domain over plaintext passwords in scripts.

Verification checklist

Reboot PC and confirm drive letter reconnects before user opens apps depending on Z:. Scripts using UNC should run as scheduled task test once.

  1. Reboot once after changes that affect services, drivers, or firmware.
  2. Confirm the original problem is resolved under normal daily use, not only immediately after the fix.
  3. Note date, Windows version (Settings → System → About), and what changed in your personal runbook for next time.

Quick reference paths

  • File Explorer → Map network drive
  • net use
  • Control Panel → Credential Manager
  • Admin tools: press Win + X for Terminal (Admin), Device Manager, and Computer Management.

Related guides

drive map network windows