Finding and sharing the path of a network drive in Windows allows users to store and share files without consuming excessive data resources. It also provides a secure file sharing medium since only users with the network drive address and password can access it. This comprehensive guide covers several methods to find, map, and troubleshoot network drives in Windows.
Overview of Network File Sharing
Before digging into the details of mapped network drives within Windows, it helps to understand common network file sharing protocols that facilitate remote file access:
Server Message Block (SMB) – Developed by Microsoft, SMB is the primary protocol used by Windows for sharing files, printers, serial ports and other resources over a network. SMB traffic relies on TCP ports 445 and 139.
Network File System (NFS) – Created by Sun Microsystems, NFS allows computers to access files on Linux and Unix servers as if they were local drives. This requires TCP port 2049.
Common Internet File System (CIFS) – CIFS is an updated version of SMB, used for sharing files cross-platform between Windows, Linux and macOS devices. It functions similarly to SMB.
| Protocol | Developed By | Used on | Ports |
|---|---|---|---|
| SMB | Microsoft | Windows networks | TCP 445, 139 |
| NFS | Sun Microsystems | Linux/Unix networks | TCP 2049 |
| CIFS | Storage Networking Industry Association | Cross-platform file sharing | TCP 445 |
While SMB tends to be faster on Windows networks, CIFS is generally preferred for cross-platform compatibility. NFS excels at high-performance Linux environments.
Comparing Mapped Drives vs UNC Paths
Once you establish connectivity with a file server share utilizing one of these protocols, there are two main ways to work with those remote files under Windows:
UNC Paths – UNC stands for Universal Naming Convention. A UNC path points directly to the network share using the format \\server\share\folder\file. For example: \\NAS01\customers\orders\2022\order99.txt
Mapped Drive Letters – Alternatively, you can assign a mapped drive letter like M: to that network share as a shortcut. So M:\customers\orders\2022\order99.txt refers to the same file.
| Method | UNC Path | Mapped Drive |
|---|---|---|
| Persistent connections | No, dropped after session | Yes, reconnects at login |
| Easy to access in File Explorer | No, need to connect explicitly | Yes |
| Works remotely or offline | Yes | No |
| Simple format for scripts/apps | Yes | No |
As you can see UNC paths uniquely and permanently refer to a resource, but drive mappings make working with remote files much easier from within Windows. So which approach should you use? The method described in the rest of this guide allow you to discover the UNC path associated with any mapped drives to get the best of both worlds.
Finding Network Drives in File Explorer
The easiest way to find the path of a mapped network drive is through File Explorer:
- Open File Explorer and navigate to This PC in the left pane.
- Expand the Network Locations section. This will display any mapped network drives.
- Right click on the network drive and select Properties.
- In the Properties window, note the Network path: field. This shows the full UNC path to that drive.
For example, the network path might be \\server-name\share-name pointing to a Windows SMB file share, or \\nas01.local\documents referring to storage on a Linux-based NAS device exporting NFS mounts.
According to Microsoft‘s telemetry in 2020, the average Windows user has 2.27TB of personal storage split between local drives and network servers. Maintaining visibility into what network shares you have mapped as drive letters is key to effectively managing that data.
Finding Network Drives Using Net Use
The net use command can also be used to find network drive paths in Windows by querying active mapped drive connections:
net use
- Open Command Prompt.
- Type
net useand press Enter. - Scan the output for any mapped network drives including:
- Status – Indicates if the drive is connected or disconnected.
- Local – The drive letter assigned to the mapping on your computer.
- Remote – The UNC path representing the location of the drive on the network.
For example, this shows drive H: mapping to a Windows SMB share on the CORPFILE server:
Status Local Remote Network
-------------------------------------------------------------------------------
OK H: \\CORPFILE\Docs Microsoft Windows Network
While simple CIFS/NFS network shares can average 190 GB of data based on NetApp‘s financial services customer metrics, Windows Server admins have the ability to analyze storage consumption patterns using utilities like Get-WmiObject and Get-SmbShare in PowerShell.
Finding Drives with PowerShell
You can also use PowerShell‘s Get-PSDrive cmdlet to find network drive information:
Get-PSDrive -PSProvider FileSystem
This returns objects with detailed properties on all mapped file system drives, including any network drive mappings. The Root property shows the assigned drive path while Used (GB) displays utilization metrics.
Here is partial output showing a 500GB share mapped to drive T:
Name Used (GB) Free (GB) Provider Root
T 357.12 142.88 FileSystem \\STORE\backup
PowerShell offers this rich drive information for monitoring and alerts, while net use provides a quick terminal view.
Mounting Drives from the Command Line
In addition to viewing existing mapped network drives, you can also map new ones from Command Prompt or PowerShell on the fly:
Net Use from CMD
net use Z: \\server\documents
New-PSDrive in PowerShell
New-PSDrive -Name Z -PSProvider FileSystem -Root \\server\documents
Once mounted interactively or via scripts, these network drives become available in File Explorer like any other logical drive.
PowerShell even supports persistent mapped drive connections that automaticallly restore at user login, unlike the temporary net use mappings:
New-PSDrive -Name X -PSProvider FileSystem -Root \\server\data -Persist
This prevents losing mapped drive access whenever your system reboots.
Why Find Network Drive Paths?
So why go through the effort of locating the underlying network paths assigned to mapped drive letters vs directly accessing those friendly drive letters only? There are several key reasons:
File Transfer Scripts – Automation scripts that copy files between systems often rely on UNC paths rather than mapped drive letters that can change or disappear between sessions. Maintaining persistent unc paths ensures script reliability.
Share Permissions – Granting access to the root network path allows setting user and groups permissions to control access rather than individually managing drive letters. This simplifies security management adhering to least privilege principles.
Remote Connectivity – VPNs, VDI sessions, and remote desktops may not consistently reconnect mapped drives requiring credentials. Using UNC paths removes reliance on transient drive mappings.
Diagnostic Logging – Applications may log errors containing network paths revealing issues with backend storage, permissions, or improperly mapped drives. Quick access to the source paths aids troubleshooting.
Offline Support – Sync tools can leverage UNC paths as static reference points for synchronizing local copies of files for offline productivity. Drive letters assignments often shift as drives connect and disconnect.
While working with friendly drive letters makes daily file interaction easy, keeping track of the source unc paths is critical for effective scripting, monitoring, and troubleshooting.
Troubleshooting Network Drive Issues
If you experience issues mapping or connecting to network shares, here are some common things to check:
| Issue | Possible Cause | Resolution |
|---|---|---|
| Access denied | Permissions, credential problems | Confirm share access rights are configured properly according to business function rather than individual user identity |
| Cannot connect | Firewalls blocking traffic | Validate Windows Firewall or edge network firewalls permit inbound access to SMB ports |
| Offline unavailable | Offline caching interfering | Disable offline file properties for stable always-online connections |
| Errors accessing files | Drive letter conflict | Run net use * /delete from an elevated Command Prompt to remove existing drive mappings, then remap |
| Failure to map hidden shares | Hidden admin shares not directly accessible | Use UNC path directly or take ownership to expose special purpose shares |
| Drives disconnecting | Server maintenance/backups | Check for routine IT operations during low utilization periods and notify users to expect interruptions |
If connection issues persist, engage your network team to review for configuration changes related to permissions, firewall policies, or VPN terminations that may explain the problems.
Monitoring Event Viewer application logs on the Windows client and file sharing server can also reveal clues related to problems surfacing for users. Unexpected growth trends for particular shares visible in tools like TreeSize Pro could indicate changing usage patterns warranting allocating additional capacity.
Automate File Transfers with PowerShell
Once network drives paths are known, you can leverage PowerShell to reliably automate large file transfers rather than relying on mapped drive letters:
$source = "\\oldserver\docs"
$destination = "\\newserver\documents"
$files = Get-ChildItem $source | Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-90) }
Copy-Item $files -Destination $destination
This looks for files older than 90 days in the source directory and copies them to the destination share – all via unc paths without needing a persistent mapped drive.
Built-in cmdlets like Copy-Item, Move-Item and Get-ChildItem accept UNC paths as parameters. Combined with PowerShell‘s filtering and flow control functionality, you get a robust toolset for handling automation across mapped drives.
Setting up scheduled tasks or runbooks within Azure Automation that call PowerShell scripts prevents file operations from failing unnoticed if transient mapped drive issues arise. Tests also ensure permissions and connectivity are maintained continuously.
Monitoring Network Drive Performance
In addition to availability, keeping an eye on network drive response times gives a proxy for user experience. High latency accessing files leads to headaches even without total outages.
Built-in utilities like Diskspd on Windows Server provides detailed benchmarks for scratch IO:
diskspd -c100M -b8K -d60 -Sh -L -t8 \\server\share\sample.dat
While synthetic testing churns the storage subsystem, real-time monitoring using tools like SolarWinds identifies applications and users generating heavier loads so capacity can be shifted dynamically:
This may reveal shares being utilized for unintended purposes or highlight the need to move older, unused data to secondary storage tiers.
Having visibility lets enterprises balance network storage costs against data gravity and access patterns. Over 80% of mid-size businesses experience limited appetite and budget for wholesale archiving initiatives without performance requirements forcing action. Careful oversight of network drive usage circumvents this issue.
Conclusion and Best Practices
To work productively with files shared over local area networks and wide-area networks, Windows supports mapping drives to unc network paths provided by a variety of protocols like SMB and NFS.
Combining the persistence and uniformity of UNC paths with the familiarity of mapped drive letters gives organizations and users the best of both worlds.
Key takeaways include:
- Audit network location properties in File Explorer to discover the source servers and share names used by drive mappings
- Utilize
net useandGet-PSDriveto query active mapped drives from the command line - Consider disabling offline file caching features to reduce conflicts accessing remote shares
- Favor PowerShell for scripting automated file operations using UNC paths over transient mapped letter connections
- Monitor user experience and server performance to inform storage provisioning needs
Following these tips will help avoid common pitfalls when working with network mapped drives in the enterprise. Understanding the underlying unc paths and analytically monitoring usage enables securely sharing files across both local area and wide area networks.


