Pcornel
Storage · SMB

SMB2

Cheat sheet · https://pcornel.dk/topic.php?topic=4153

Back to the Topic

Answer

Client and server negotiate a common dialect before session setup. SMB 2.x provides the foundation on which later SMB 3.x features evolved, but feature availability depends on the specific dialect and implementation.

Remember

  • SMB2 ≠ SMB1.
  • SMB 2.0.2 ≠ SMB 2.1 feature set.
  • SMB2 label ≠ SMB3 features automatically.
  • Negotiated dialect ≠ every optional capability active.

First checks

  • Get-SmbConnection | ft Dialect — 2.x dialects
  • Get-SmbServerConfiguration | fl EnableSMB2Protocol — enabled
  • smbclient -m SMB2 -L //srv — force dialect

Verify in this order

client ↔ SMB2 dialect ↔ server

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 → SMB2 file-service map

File-service boundaryWhat to verifyProof limit
Endpoint / namespaceCorrect client, server, export/share, path and negotiated protocol versionReachability or namespace visibility does not prove authorization or backend health
Identity / securityEffective identity, protocol security state and export/share/filesystem authorizationAuthentication or one permission layer does not prove complete file access
Failure boundaryNegotiating an SMB2-family dialect proves protocol compatibility only; it does not prove authentication, authorization, performance or later SMB3-only capabilities.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: a supported intended SMB2 dialect is negotiated with compatible security policy and subsequent session/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=4153

Confirmation

Confirm action

Continue?