Pcornel
Windows · SMB

SMB Encryption

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

Back to the Topic

Answer

SMB encryption protects SMB 3 traffic end to end with AES-GCM or AES-CCM, set per share or for the whole server with Set-SmbShare -EncryptData or Set-SmbServerConfiguration.

Remember

  • SMB encryption needs SMB 3.
  • It can be set per share or server-wide.
  • It adds CPU cost.

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

SMB 3 session → encryption keys → encrypted traffic

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=3113

Confirmation

Confirm action

Continue?