Use this when SMB UNC paths fail or authenticate wrongly.
UNC Paths · SMB
UNC paths for SMB follow \\server\share\path, where server is a name or IP address. Using the name allows Kerberos, while an IP address forces NTLM authentication.
1. Test-Path \\server\share.
2. Name resolution and 445.
3. Credentials of the running account.
4. Use FQDN for Kerberos.
5. DFS path → referrals.
Context & applicabilityCommon mistakes · platform/version boundaries
- Using
\\IP\share, which forces NTLM and may be blocked. - SMB signing required on one side and not supported on the other (old NAS devices).
- Insecure guest access blocked on Windows 11 for NAS shares — configure real accounts on the NAS.
Operational reference
Fast context before you go deeper.
Test-NetConnection fs01 -Port 445Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Troubleshooting SMB paths Narrow the fault
Test-NetConnection fs01 -Port 445
Get-SmbConnection
Get-SmbMapping
klist # Kerberos ticket for cifs/fs01?
net use \\fs01\data /user:EXAMPLE\alice
Documented example, not captured output. Access by IP falls back to NTLM; access via DNS alias needs an SPN for the alias (setspn -S cifs/alias fs01). Error 53 = name/network problem, 5 = access denied, 1326 = bad credentials.
Evidence · 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.
- \
ame uses Kerberos; \\IP uses NTLM.
- Admin shares require admin rights.
- A UNC path works without a mapped drive.
Get-SmbShare— shares on the serverGet-SmbSession / Get-SmbOpenFile— sessions and open filesGet-SmbConnection— client connections and dialectGet-SmbServerConfiguration— server settings (signing, encryption, SMB1)Test-NetConnection <server> -Port 445— SMB port reachability
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
UNC path behaviour specific to SMB:
| Case | Result |
|---|---|
\\fs01.corp.example.com\share | Kerberos (SPN cifs/fs01.corp…) |
\\10.0.10.30\share | NTLM (no SPN for IPs, unless configured) — may be blocked where NTLM is disabled |
\\files\share (DNS CNAME alias) | Needs SPN for the alias (setspn -S cifs/files CORP\fs01$) and DisableStrictNameChecking/OptionalNames |
DFS path \\corp.example.com\dfs\share | Referral to a target server |
Prefer DFS namespaces over CNAMEs for share aliases.
ReferenceConfiguration & state1 section · depth on demand
Commands
Test-NetConnection fs01 -Port 445
Get-SmbConnection
net use
klist # Kerberos ticket for cifs/fs01 present?
Resolve-DnsName fs01
If access works by IP but not by name (or vice versa), check SPNs and DNS — IP access uses NTLM.
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 SMB → 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/smb-overview · confidence 94%