☕ Buy a Coffee
Home / Windows & SysAdmin

Map a Network Drive for Shared Office Folders

Mount shared SMB server folders and NAS directories as permanent drive letters (Z:, Y:) for persistent, lightning-fast file explorer access.

Sachin Siju
Sachin Siju
Lead Systems Engineer & Tech Blogger
Jul 12, 2026 3 min read
Map a Network Drive for Shared Office Folders

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\Accounting or \\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

  1. Open File Explorer and click This PC in the left sidebar.
  2. 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).
  3. Pick an unused Drive letter. Z:, Y:, and X: are conventional choices for network shares since they're far from your local C: and USB drive letters, reducing the chance of a collision.
  4. In the Folder field, type the full UNC path, for example \\10.0.0.5\Shared, or click Browse to find it.
  5. Check Reconnect at sign-in so Windows remounts the drive every time you log in.
  6. If the share requires different credentials than your Windows login, check Connect using different credentials.
  7. 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.

Common failure: if the mapped drive shows a red X and won't reconnect at boot, it's almost always because Windows tried to reconnect before the network adapter was fully up, or because saved credentials expired. Open Control Panel > Credential Manager > Windows Credentials and remove the stale entry for the server, then remap and re-enter credentials.

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.
Featured Infrastructure Partner

Deploy on High-Performance Hostinger Cloud

Get up to 75% OFF + free domain & SSL. Powering xube.me's sub-second response times.

Claim Discount ↗

Discussion & Insights

Related Technical Essays