Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

SMB Encryption

Direct 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.

When to use this

Use this when SMB traffic must be encrypted.

First 30 seconds

1. Get-SmbShare -Name <s> | Select EncryptData / server EncryptData.

2. SMB 3.x clients needed.

3. RejectUnencryptedAccess setting.

4. Test access from clients.

5. Performance check.

Operational verification

SMB 3 session → encryption keys → encrypted traffic

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Scope / prerequisiteUse this when SMB traffic must be encrypted.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Expecting encryption with SMB 2 clients (they are refused when RejectUnencryptedAccess is set).
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • SMB encryption needs SMB 3.
  • It can be set per share or server-wide.
  • It adds CPU cost.
Key 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
ReferenceWhy it matters1 section · depth on demand

How it works

SMB encryption (SMB 3.0+) encrypts and integrity-protects the whole session with AES-CCM or AES-GCM (128-bit; AES-256 is also available from Windows 11 / Server 2022). It can be enabled per share or for the whole server. Encryption implies integrity, so signing is not needed on top. It protects data on untrusted networks without needing IPsec or a VPN.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Enable encryption where it matters

PS C:\> Set-SmbShare -Name Finance -EncryptData $true -Force
PS C:\> Get-SmbShare | Select Name, EncryptData
PS C:\> Get-SmbConnection | Select ServerName, ShareName, Dialect, Encrypted
PS C:\> Get-SmbServerConfiguration | Select EncryptData, RejectUnencryptedAccess, EncryptionCiphers

Microsoft's SMB security guide covers per-share encryption with Set-SmbShare -EncryptData $true, the RejectUnencryptedAccess setting (default $true) and the AES-128/256 GCM and CCM cipher suites.

What happens with older clients

ClientShare requires encryption, RejectUnencryptedAccess = True= False
SMB 3.x (Windows 8 / Server 2012 and later)Encrypted sessionEncrypted session
SMB 2.x / 1Access deniedAllowed unencrypted

Setting RejectUnencryptedAccess to $false keeps old clients working but silently removes the protection for them — record which clients still connect unencrypted before choosing that.

Ciphers

CipherSMB dialectWindows
AES-128-CCM3.0 / 3.0.2Windows 8 / Server 2012+
AES-128-GCM3.1.1Windows 10 / Server 2016+ (preferred, faster)
AES-256-CCM / GCM3.1.1Windows 11 / Server 2022+

Set-SmbServerConfiguration -EncryptionCiphers 'AES_256_GCM, AES_128_GCM' sets the order; keep at least one cipher every client supports.

When to use it

  • Sensitive shares (finance, HR), branch offices over untrusted WAN links, or as a replacement for IPsec on file traffic.
  • Remote access without VPN via SMB over QUIC (Windows Server 2022 Datacenter: Azure Edition and Windows Server 2025), which always encrypts.

Performance and troubleshooting

Encryption uses AES-NI and is usually inexpensive; older SMB Direct (RDMA) releases lost direct data placement when encryption was on. Event 1003/1006 class messages in the SMBServer/Security log record denied unencrypted access — the first place to look when a user suddenly gets "access denied" after enabling encryption.

*The SMB share encryption checks above are illustrative examples, not captured from a lab or production system.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Settings

Set-SmbShare -Name Finance -EncryptData $true
Set-SmbServerConfiguration -EncryptData $true      # all shares
Get-SmbConnection | Select ShareName,Encrypted

Documented example, not captured output. Requires SMB 3.x clients.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

Authoritative/upstream documentation reviewed for bounded claims in SMB → SMB Encryption. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-overview · confidence 94%
Confirmation

Confirm action

Continue?