Why Map a Network Drive at All
Typing \\server\share into the address bar every morning works, but it doesn't survive a reboot, doesn't show up in the This PC sidebar, and doesn't get remembered by older desktop applications that only know how to open files from a drive letter. Mapping a network drive assigns a shared folder — on a NAS, a Windows Server share, or another PC on the LAN — a permanent letter like Z: so it behaves exactly like a local disk everywhere in Windows, including in Save/Open dialogs from apps like Excel or AutoCAD that don't understand UNC paths well.
What You Need First
- The share's network path, e.g.
\\192.168.1.10\Accountingor\\fileserver\Public. - Credentials with permission to access it, if the share isn't open to everyone.
- Your PC and the server/NAS on the same network (or connected via VPN if it's a remote office).
Method 1: Map It From File Explorer
- Open File Explorer and click This PC in the left sidebar.
- On the ribbon, click Computer > Map network drive (in Windows 11, click the three-dot More menu at the top and choose Map network drive).
- Pick an unused Drive letter.
Z:,Y:, andX:are conventional choices for network shares since they're far from your localC:and USB drive letters, reducing the chance of a collision. - In the Folder field, type the full UNC path, for example
\\10.0.0.5\Shared, or click Browse to find it. - Check Reconnect at sign-in so Windows remounts the drive every time you log in.
- If the share requires different credentials than your Windows login, check Connect using different credentials.
- Click Finish. If prompted, enter the username and password for the share — check Remember my credentials to avoid retyping it later.
The drive now appears under This PC with the letter you chose, and opens instantly on future logins.
Method 2: Map It From the Command Line
For scripting, remote support, or just speed, net use does the same job without touching the GUI:
net use Z: \\fileserver\Accounting /persistent:yes
If the share needs credentials, pass them directly (avoid this in scripts you'll leave lying around, since the password is visible in plain text):
net use Z: \\fileserver\Accounting /user:DOMAIN\yourname YourPassword /persistent:yes
/persistent:yes is the command-line equivalent of "Reconnect at sign-in." To remove a mapping later:
net use Z: /delete
To list every currently mapped drive and its connection status, just run net use with no arguments.
Method 3: PowerShell
PowerShell's New-PSDrive can also create a mapping, and integrates better if you're already scripting logon tasks:
New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\fileserver\Accounting" -Persist -Credential (Get-Credential)
The -Persist flag is required to make it show up as a real drive letter in File Explorer rather than just a PowerShell-session-only alias.
Making It Even More Convenient
Pin the mapped drive to Quick Access by right-clicking it under This PC and selecting Pin to Quick access, or drag it into the Quick Access section for one-click access from the File Explorer sidebar. If you manage multiple office PCs with the same shares, wrap the net use command in a logon script (via Group Policy or Task Scheduler) so every machine maps the same drives automatically without manual setup.
Troubleshooting Connection Issues
- "The network path was not found": confirm the server name resolves — try the raw IP address instead of the hostname to rule out a DNS issue.
- "Access is denied": the share permissions or NTFS folder permissions don't include your account; check with whoever administers the NAS or file server.
- Mapping vanishes after sleep/hibernate: some routers and NAS devices drop idle SMB sessions. Windows should auto-reconnect on the next access, but if it doesn't, disable your NAS's aggressive idle-timeout setting.
Discussion & Insights