Pcornel
Windows · SMB

SMB Protocol

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

Back to the Topic

Answer

The SMB protocol provides file, printer and named-pipe access over TCP 445. Dialects range from the obsolete SMB1 to SMB 3.1.1 with pre-authentication integrity, encryption and signing.

Remember

  • SMB1 is obsolete and insecure.
  • SMB 3.1.1 adds pre-authentication integrity.
  • SMB uses TCP 445.

First checks

  • Get-SmbShare — shares on the server
  • Get-SmbSession / Get-SmbOpenFile — sessions and open files
  • Get-SmbConnection — client connections and dialect
  • Get-SmbServerConfiguration — server settings (signing, encryption, SMB1)
  • Test-NetConnection <server> -Port 445 — SMB port reachability

Verify in this order

negotiate → session setup (Kerberos/NTLM) → tree connect → file operations

Where it usually breaks

First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3107

Confirmation

Confirm action

Continue?