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
- Open File Explorer → right-click This PC → Map network drive (or Show more options first on Windows 11).
- Choose a drive letter (e.g. Z:).
- Enter the UNC path:
\\server\shareor\\192.168.1.10\Documents. - 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
- Run
ping serverandnet view \\serverto confirm connectivity and share visibility. - Check Settings → Network & internet → Advanced sharing settings — enable file sharing on Private networks.
- Remove stale mappings:
net use Z: /deletethen remap with correct credentials.
5) Group Policy drive maps (Pro domain)
- User Configuration → Preferences → Windows Settings → Drive Maps — deploy consistent mappings in AD environments.
6) Reconnect at logon failures
- Stored credentials: Control Panel → Credential Manager → Windows Credentials — update stale passwords for
\serverentries.
7) Enable SMB client features
- Control Panel → Programs → Turn Windows features on → SMB Direct for RDMA NAS on datacenter gear.
- Confirm SMB signing not blocking old NAS — adjust via
Set-SmbClientConfigurationin lab only.
8) UNC vs mapped drive in scripts
- 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.
- Reboot once after changes that affect services, drivers, or firmware.
- Confirm the original problem is resolved under normal daily use, not only immediately after the fix.
- 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.