SMB Encryption
Cheat sheet · https://pcornel.dk/topic.php?topic=3113
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 serverGet-SmbSession / Get-SmbOpenFile— sessions and open filesGet-SmbConnection— client connections and dialectGet-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