Test-Path '\\server\share\folder'
One path.
Everywhere.
Universal Naming Convention gives people and programs a consistent way to find shared files, folders, and devices across a network.
01 / ANALYZE + CONVERT
Paste a path.
Know exactly what it is.
Validate a network path, separate its components, catch common problems, and translate it into the format your next tool expects.
Syntax only, not a connectivity test. Processing runs in this page; data-handling details.
fileserverteam✓Structure checked only. Server existence, permissions, and application support are not tested.
Choose your destination
8 translations\\fileserver\team\projects\2026\plan.docxPaste into File Explorer or an application that accepts Windows network paths.
file://fileserver/team/projects/2026/plan.docxSpaces and Unicode are percent-encoded. Browser and application security rules may prevent opening file links.
smb://fileserver/team/projects/2026/plan.docxFor SMB-aware file managers such as macOS Connect to Server. This is not an HTTPS link.
'\\fileserver\team\projects\2026\plan.docx'Single-quoted literal: backslashes remain unchanged; embedded apostrophes are doubled. Use -LiteralPath where available.
"\\\\fileserver\\team\\projects\\2026\\plan.docx"A JSON string literal: every backslash is escaped. A JSON parser restores the original path.
@"\\fileserver\team\projects\2026\plan.docx"Verbatim string literal for C# source code, not for Explorer.
"\\\\fileserver\\team\\projects\\2026\\plan.docx"An ordinary quoted Python string with escaped backslashes. The path still requires OS/network access.
//fileserver/team/projects/2026/plan.docxA textual representation only. It is not automatically a mounted filesystem path on Linux or macOS.
02 / GUIDED TROUBLESHOOTING
Find the layer.
Then the fix.
Separate syntax, connectivity, identity and permissions. This guide never probes your network. Commands run only if you choose to use them on your own authorized computer.
Reference: Microsoft TCP diagnostics · DNS lookup · Logon-session mappings
CHECK 1 OF 2
Check the address and network
Replace this example with your approved server and share. Try the share root in File Explorer, without the nested filename. Connect to your organization’s network or approved VPN first.
\\fileserver\team
Example commands, not results from your computer. Replace example names before running.
Still stuck? Give your IT team the exact error, affected path, time, account context and which check failed. Redact sensitive names before sharing publicly.
03 / COPY-READY EXAMPLES
Use it in
the real world.
dir \\server\share\folder
net use Z: \\server\share
from pathlib import Path path = Path(r'\\server\share\file.txt')
var path = @"\\server\share\file.txt";
\\domain.example\SYSVOL\domain.example\Policies
\\domain.example\Departments\Finance
\\workstation-07\C$\Windows
04 / THE STANDARD
A location that
speaks for itself.
Unlike a mapped drive letter, a UNC path doesn’t depend on how one computer is configured. It names the host and share directly, making it portable, explicit, and automation-friendly.
Prefix
\\Two backslashes signal that the location is a network resource.
Server
SERVERThe hostname or IP address of the computer providing the resource.
Share
SHAREThe published name of the shared folder, printer, or device.
Path
PATHOptional folders and a filename inside the share.
05 / A SHORT HISTORY
Born on the LAN.
Still at work.
UNC emerged with the first generation of PC local-area networking: a direct, machine-independent way to name a resource without relying on a locally assigned drive letter.
The network becomes a place
As PC networks and the LAN Manager protocol family took shape, shared resources needed addresses that worked from any connected machine. The familiar \\server\share form supplied that common language.
Windows makes it everyday
Windows networking and SMB/CIFS brought UNC paths into offices at scale—for shared folders, printers, logon scripts, home directories, and administrative shares.
From one server to a namespace
Active Directory and Distributed File System made domain-based paths practical. A stable UNC name could point people to data even as the servers behind it changed.
A durable convention
Modern Windows APIs still recognize the two-backslash form, while SMB 2 and 3 carry it across contemporary enterprise, NAS, and hybrid environments.
06 / QUICK REFERENCE
Patterns worth
remembering.
UNC is most common on Windows and SMB networks, but the naming idea is broader: identify the authority first, then the resource.
\\atlas\projects\\atlas\projects\briefs\launch.docx\\workstation-07\C$\WindowsUse backslashes
Windows UNC paths use \, not the forward slash used in web addresses.
Permissions still apply
A correctly formed path identifies a resource; it does not grant access to it.
Names beat drive letters
\\server\share remains clear when Z: means something different elsewhere.
UNC paths vs. mapped drives
Why the same resource can have two addresses—and which one belongs in automation.
Read guide →GUIDE 02UNC path length explained
Classic limits, extended-length syntax, and the practical rules that matter today.
Read guide →GUIDE 03How to open a UNC path
Windows Explorer, Run, Command Prompt, PowerShell, and common cross-platform options.
Read guide →