SMB Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=4147
Answer
SMB is session-oriented: transport establishment is followed by dialect/capability negotiation, user authentication, share connection and file opens/leases before application I/O. Each stage has distinct failure evidence.
Remember
- SMB connection ≠ authenticated session.
- Authenticated session ≠ share tree connected.
- Share access ≠ file ACL access.
- Dialect version ≠ every optional feature active.
First checks
Get-SmbServerConfiguration | fl EnableSMB1Protocol,EnableSMB2Protocol,RequireSecuritySignature,EncryptData— server configGet-SmbConnection— dialects in useTest-NetConnection <server> -Port 445— reachability
Verify in this order
negotiate → session setup (auth) → tree connect → file ops
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 Fundamentals 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 | One successful SMB phase does not prove later phases; use protocol/session evidence to locate the first failed boundary. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: negotiate, authentication, tree connect and required file operations all succeed with the expected dialect and security state. | 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=4147