Use this when accessing network shares without drive letters.
UNC Paths · Files & Directories
A UNC path names a network resource as \\server\share\folder\file, without a drive letter. It works in Explorer, cmd and scripts, and \\server\c$ reaches administrative shares.
1. Test-Path \\server\share\path.
2. Name resolution and SMB reachability: Test-NetConnection server -Port 445.
3. Credentials: net use.
4. Services/tasks need an account with share access (no mapped drives).
5. Use UNC paths, not drive letters, in scripts.
Context & applicabilityCommon mistakes · platform/version boundaries
- Using IP addresses in UNC paths — Kerberos fails and NTLM is used (or blocked).
- Mapped drives in scripts that run as SYSTEM or another user (mappings are per session).
- Hard-coded server names instead of DFS namespaces.
- UNC paths to servers reachable only by short name when DNS suffixes are missing.
Operational reference
Fast context before you go deeper.
Test-Path \\fs01\shareEvidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Using the server name allows Kerberos; an IP address forces NTLM.
- Administrative shares like C$ require local admin rights.
- UNC paths work in scripts without mapping a drive.
Get-ChildItem <path> -Force— contents including hiddenTest-Path <path>— exists?Resolve-Path <path>— full pathGet-Item <path> | fl *— attributes and timestamps
ReferenceWhy it matters1 section · depth on demand
Using UNC paths
dir \\fs01\data\projects
net use Z: \\fs01\data /persistent:yes
New-PSDrive -Name Z -PSProvider FileSystem -Root \\fs01\data -Persist
Test-Path \\fs01\data
Documented example, not captured output. cmd cannot use a UNC path as the current directory (pushd \\fs01\data maps a temporary drive). Use FQDNs (\\fs01.example.com\data) so Kerberos works; IP addresses force NTLM.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
UNC paths (\\server\share\path) address network resources without drive letters. The client resolves the server name (DNS, NetBIOS), connects with SMB to TCP 445 and authenticates (Kerberos with the name, NTLM with an IP or alias without SPN).
Test-Path \\fs01\projects
Get-SmbConnection
net use \\fs01\projects /user:CORP\alice
pushd \\fs01\projects # cmd: temporary drive letter for UNC
Scheduled tasks and services should use UNC paths, not mapped drives — drive mappings exist per logon session.
ReferenceConfiguration & state1 section · depth on demand
Commands
Test-Path \\fs01\share
New-PSDrive -Name S -PSProvider FileSystem -Root \\fs01\share -Persist
net use S: \\fs01\share /persistent:yes
Get-SmbMapping
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Files & Directories → UNC Paths. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/file-server/ntfs-overview · confidence 94%