Use this when SMB traffic must be encrypted.
SMB Encryption
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.
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.
SMB 3 session → encryption keys → encrypted traffic
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- SMB encryption needs SMB 3.
- It can be set per share or server-wide.
- It adds CPU cost.
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
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
| Client | Share requires encryption, RejectUnencryptedAccess = True | = False |
|---|---|---|
| SMB 3.x (Windows 8 / Server 2012 and later) | Encrypted session | Encrypted session |
| SMB 2.x / 1 | Access denied | Allowed 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
| Cipher | SMB dialect | Windows |
|---|---|---|
| AES-128-CCM | 3.0 / 3.0.2 | Windows 8 / Server 2012+ |
| AES-128-GCM | 3.1.1 | Windows 10 / Server 2016+ (preferred, faster) |
| AES-256-CCM / GCM | 3.1.1 | Windows 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.*
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%