Where can Windows require SMB encryption, and what does an encrypted share do to a client that cannot do SMB 3?
answer
- four places to require it
- EncryptData, RequirePrivacy, RequireEncryption
- the server refuses by default
- RejectUnencryptedAccess defaults to true
- event 1003, access denied
basics
~20 sWindows requires encryption per share, for the whole server, per mapped drive, or for all outbound connections of a 24H2 client. With RejectUnencryptedAccess at its default of true, a client without SMB 3 is refused and the server logs event 1003.
solid answer
~30 sA server requires encryption per share (`Set-SmbShare -EncryptData $true`) or for the whole server (`Set-SmbServerConfiguration -EncryptData $true`); a client requires it per mapped drive (`New-SmbMapping -RequirePrivacy $true`, or UNC hardening) or, on Windows 11, version 24H2 and Windows Server 2025, for every outbound connection (`Set-SmbClientConfiguration -RequireEncryption $true`). Encryption needs SMB 3.0 or later. `RejectUnencryptedAccess` is `$true` by default, so a pre-3.0 client opening an encrypted share gets Access denied and the server logs event 1003 in `Microsoft-Windows-SmbServer/Operational`. Setting it to `$false` lets older clients in unencrypted during a transition, which Microsoft does not recommend.
code
powershell · 5 lines# files01.example.internal
Set-SmbShare -Name Finance -EncryptData $true
# Server-wide: is encryption required, and are unencrypted clients refused?
Get-SmbServerConfiguration | Format-List EncryptData, RejectUnencryptedAccessgo deeper
Recall that SMB encryption needs SMB 3 and that a client without it is refused by default.
Name the four scopes (share, server, mapped drive, client-wide), the default RejectUnencryptedAccess behaviour with event 1003, and the cipher per dialect.
Scope encryption to the sensitive share first, audit before enforcing, keep RejectUnencryptedAccess at true except for a dated transition, and note that SMB 1.0 must be gone for the guarantee to hold.
Weigh the CPU and compatibility cost of encryption against the data classification it protects, and decide which device populations get a dated exception rather than a blanket relaxation.
## Four places to require encryption SMB encryption is not on by default. An administrator can require it at four points, and the point decides who enforces it. | Scope | Enforced by | Setting | |---|---|---| | One share | The server | `Set-SmbShare -Name Finance -EncryptData $true`, or `New-SmbShare ... -EncryptData $true` | | The whole server | The server | `Set-SmbServerConfiguration -EncryptData $true` | | One mapped drive | The client | `New-SmbMapping -RequirePrivacy $true`, `NET USE ... /REQUIREPRIVACY`, UNC hardening | | Every outbound connection | The client | `Set-SmbClientConfiguration -RequireEncryption $true` (Windows 11, version 24H2 and Windows Server 2025) | The client-wide mandate makes the machine refuse to connect to a server that does not support SMB 3.0 or later, or that supports SMB 3 without encryption. Microsoft warns that legacy servers such as Windows Server 2008 R2 do not support SMB 3.0 and that older third-party servers may support SMB 3.0 without encryption. ## What a client without SMB 3 sees When encryption is required for a share or server, only SMB 3.0, 3.0.2 and 3.1.1 clients are allowed in by default. That behaviour is the server setting `RejectUnencryptedAccess`, which is `$true` by default. A client that cannot do SMB 3.x, such as an SMB 2.1 client, gets an Access denied error, and the server logs event 1003 in `Microsoft-Windows-SmbServer/Operational`. Setting `Set-SmbServerConfiguration -RejectUnencryptedAccess $false` lets those clients reach the encrypted share unencrypted. It is a transition aid for mixed client versions; Microsoft does not recommend it and says to update the clients to support encryption. Note that it is a server-wide setting, and that it does not itself switch encryption on. ## Which cipher encrypts the session | Dialect | Cipher | |---|---| | SMB 3.0, 3.0.2 | AES-128-CCM only | | SMB 3.1.1 | Negotiated; AES-128-GCM is the default | | SMB 3.1.1 on Windows Server 2022 and Windows 11 | AES-256-GCM and AES-256-CCM are also available | Two Microsoft pages word the 3.1.1 choice a little differently: one says Windows automatically negotiates the stronger 256-bit method when the peer supports it, another says AES-128-GCM is the default. Treat AES-128-GCM as the default and name the 256-bit suites as the release-dependent addition. `Set-SmbServerConfiguration -EncryptionCiphers` and its client twin set the list and order. ## Rollout choices 1. Audit first, as covered with the staging settings, so you know which clients and servers lack encryption. 2. Require encryption on the sensitive share, not the server, to limit the number of clients you shut out. 3. Keep `RejectUnencryptedAccess` at `$true` unless a documented transition needs it, with an owner and an end date. 4. Plan for the cost: Microsoft notes a notable performance operating cost for end-to-end encryption, and WAN accelerators can interfere. 5. Remember that pre-authentication integrity stops a downgrade from 3.1.1 to SMB 2.x but not to SMB 1.0, so the SMB 1.0 server has to be disabled for 3.1.1 clients to be guaranteed encryption. ## Samba's equivalent Samba's `server smb encrypt` takes `off`, `if_required`, `desired` or `required`, globally and per share. Per smb.conf(5), Windows enforces through a global `RejectUnencryptedAccess`, whereas Samba can require encryption on one share while another is only `desired`. The ciphers are set with `server smb3 encryption algorithms`, and removing AES-128-CCM from that list makes SMB3_00 and SMB3_02 unavailable. ## A worked example A department wants its `Finance` share on `files01.example.internal` encrypted. Forty workstations run Windows 11, version 24H2; three old devices still run an SMB 2.1 client. The administrator audits first, then runs `Set-SmbShare -Name Finance -EncryptData $true`. The 24H2 workstations negotiate SMB 3.1.1 and encrypt, so nothing changes for them. The three old devices are refused with Access denied and event 1003 appears in `Microsoft-Windows-SmbServer/Operational`. The administrator then has two honest choices: upgrade or retire the devices, or, for a documented and dated transition, set `RejectUnencryptedAccess` to `$false`, accepting that every client without SMB 3 then reaches the encrypted share unencrypted. ```powershell # Require encryption on one share, then read the server-wide values Set-SmbShare -Name Finance -EncryptData $true Get-SmbServerConfiguration | Format-List EncryptData, RejectUnencryptedAccess ```
- Why would an administrator set RejectUnencryptedAccess to false, and what does it cost?To keep clients that cannot do SMB 3.x working during a transition with mixed client versions. The cost is that those clients then reach the encrypted share unencrypted, defeating the intent of the share setting. Microsoft does not recommend it and says to update the clients instead.
- Does pre-authentication integrity guarantee that a 3.1.1 client always ends up encrypted?No. It stops a downgrade from 3.1.1 to SMB 2.x, but not a downgrade to SMB 1.0, which would also be unencrypted. To guarantee 3.1.1 clients encrypt, the SMB 1.0 server has to be disabled; the retirement of that server is its own subject.
- How does Samba's way of requiring encryption differ from Windows's RejectUnencryptedAccess?Samba's `server smb encrypt` is set per share as well as globally, so one share can be `required` while another is only `desired`. smb.conf(5) says that to mimic Windows you set it globally to `if_required` and mark each share that must be encrypted as `required`.
- EncryptData on a share also encrypts the files stored on disk.
- RejectUnencryptedAccess is the setting that switches encryption on.
- An SMB 2.1 client can open an encrypted share if it signs its messages.
- SMB 3.0 can use AES-256-GCM when both ends support it.
- Setting RequireEncryption on a client encrypts what other clients send to the server.