EncryptData can be applied either per share or for the entire SMB server.
For selective use, enable encryption only on the shares that need it:
Set-SmbShare –Name <sharename> -EncryptData $true
To require encryption for every share on the file server, use:
Set-SmbServerConfiguration –EncryptData $true
To create a new encrypted share:
New-SmbShare –Name <sharename> -Path <pathname> –EncryptData $true
Why older clients lost access:
- When SMB Encryption is enabled for a share or server, only SMB 3.0, 3.02, and 3.1.1 clients can access those encrypted shares by default.
- Clients that do not support SMB 3.x are rejected and can receive Access denied.
- If unencrypted access remains blocked at the default setting, non-encryption-capable clients cannot connect.
If older clients must still connect during a transition period, unencrypted access can be allowed on the server with:
Set-SmbServerConfiguration –RejectUnencryptedAccess $false
Important:
- This reduces security and is not recommended except as a temporary transition measure.
- The recommended approach is to update clients so they support SMB encryption.
- To guarantee SMB 3.1.1 clients always use encryption for encrypted shares, SMB 1.0 server should be disabled.
For client-side enforcement, there are also global options:
New-SMBMapping -LocalPath <drive letter> -RemotePath <UNC path> -RequirePrivacy $TRUE
or
NET USE <drive letter> <UNC path> /REQUIREPRIVACY
- Per machine, for all outbound SMB connections on supported clients:
Set-SmbClientConfiguration -RequireEncryption $true
- By Group Policy on supported clients:
- Open Group Policy Management Console.
- Edit or create a GPO.
- Go to Computer Configuration > Administrative Templates > Network > Lanman Workstation.
- Edit Require encryption.
- Set it to Enable.
Prerequisites and compatibility notes:
- Global SMB client encryption requirement is supported beginning with Windows 11, version 24H2, and Windows Server 2025.
- If client-side encryption is required globally, the client will refuse to connect to servers that do not support SMB 3.0 or later and SMB encryption.
- SMB encryption has performance and compatibility overhead, so broad deployment should be tested carefully, especially with legacy servers or third-party SMB servers.
For the described scenario, the practical approach is:
- Keep
EncryptData enabled only on the specific shares that require protection.
- Leave non-sensitive shares unencrypted for legacy clients.
- If legacy access is temporarily unavoidable on encrypted shares, set
–RejectUnencryptedAccess $false with the understanding that this weakens protection.
- Plan a client upgrade path to SMB 3.x-capable systems.