SMB Client
Cheat sheet · https://pcornel.dk/topic.php?topic=4148
Answer
The client converts UNC/path operations into SMB requests and maintains sessions, connections, leases/oplocks and reconnect behavior. Client-side cached credentials, name resolution and negotiated policy can differ from another client.
Remember
- Mapped drive ≠ live SMB session.
- Cached credentials ≠ intended identity.
- One client works ≠ server universally healthy.
- TCP connection ≠ dialect/security compatibility.
First checks
Get-SmbConnection— connections and dialectGet-SmbMapping— mapped drivesmount -t cifs //srv/share /mnt -o vers=3.1.1,sec=krb5— Linux client
Verify in this order
client → SMB session → share
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 Client 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 | Client-side connection state proves this client view only and does not establish server backend health or another client’s identity/policy. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: correct server name resolves, intended identity is used, expected dialect/security are negotiated and required share/file operations succeed. | 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=4148