SMB Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=4159
Answer
Start with the exact UNC path, user, operation, error and timestamp. Prove each protocol phase in order and correlate client/server evidence before changing credentials, ACLs, signing/encryption policy or network settings.
Remember
- TCP 445 open ≠ SMB working.
- Access denied ≠ share missing.
- Authentication success ≠ authorization success.
- Reconnect/reboot success ≠ root cause.
First checks
Get-SmbConnection; Test-NetConnection <srv> -Port 445— connectionGet-WinEvent -LogName Microsoft-Windows-SmbClient/Connectivity -MaxEvents 30— client errorssmbstatus; testparm -s— Samba
Commands
smbclient -L //<server> -U <user>- Enumerate SMB server shares from a client. Focus fields: server negotiation, authentication result, share names/types a…
Verify in this order
client → DNS → 445 → auth → share → NTFS
Where it usually breaks
First mismatch in client identity/DNS → network transport → protocol session → authentication/authorization → export/share → backend filesystem → file operation; preserve identity/pre-state before mutation.
SMB → SMB Troubleshooting file-service map
| File-service boundary | What to verify | Proof limit |
|---|---|---|
| Endpoint / namespace | Correct client, server, export/share, path and negotiated protocol version | Reachability or namespace visibility does not prove authorization or backend health |
| Identity / security | Effective identity, protocol security state and export/share/filesystem authorization | Authentication or one permission layer does not prove complete file access |
| Failure boundary | Troubleshooting closes only when the first failed SMB boundary is explained and the original workload succeeds; clearing credentials or restarting services alone is not root-cause evidence. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: the original failing SMB operation succeeds with intended dialect/security/identity, both authorization layers are correct and server-side data read-back is verified. | Close only after the original operation and server-side/read-back verification succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4159