SMB is how Windows machines share files, and for years it ran with weak defaults: signing was negotiated but not required, and nothing on the wire was encrypted. That left two openings. An attacker on the network could tamper with or relay SMB traffic (the basis of NTLM relay attacks), and anyone capturing packets could read file contents in the clear. SMB signing and SMB encryption close those two gaps.
They’re not the same control, and that distinction is the whole point of this article. Signing protects integrity — it proves packets weren’t altered and blocks relay attacks. Encryption protects confidentiality — it scrambles the data so a packet capture is useless. You can require one, the other, or both, and where you apply each depends on what you’re protecting.
This guide explains what each does, how to enable and require them with PowerShell and Group Policy, and how to roll them out without locking out legacy clients — which is the part that turns a security improvement into a help desk fire if you skip it.
Signing vs encryption: what each one does
SMB signing vs SMB encryption
| SMB signing | Digitally signs each packet. Detects tampering and blocks SMB/NTLM relay. Data is NOT hidden. Available since SMB 2. |
|---|---|
| SMB encryption | Encrypts data in transit (AES). Prevents reading file contents on the wire. Requires SMB 3.0+. |
| Use signing when | You want integrity everywhere — it's cheap and stops relay attacks. Good as a broad default. |
| Use encryption when | Data is sensitive or crosses untrusted networks. Apply per-share or server-wide. |
A useful way to think about it: signing answers “is this packet really from who it claims, unaltered?” Encryption answers “can anyone watching read what’s inside?” An encrypted SMB 3.x connection already includes integrity protection, so the two overlap — but signing still matters for any connection that isn’t encrypted.
Check what’s configured now
Before changing anything, see where the server stands.
# Server-side SMB settings
Get-SmbServerConfiguration |
Select-Object EnableSecuritySignature, RequireSecuritySignature, EncryptData, RejectUnencryptedAccess
# Client-side SMB settings
Get-SmbClientConfiguration |
Select-Object EnableSecuritySignature, RequireSecuritySignature
The fields that matter:
EnableSecuritySignature— signing is supported/offered.RequireSecuritySignature— signing is required; unsigned connections are refused.EncryptData— encryption required server-wide.RejectUnencryptedAccess— whether clients that can’t encrypt are refused (vs allowed to fall back).
Enabling and requiring SMB signing
Requiring signing is the higher-priority of the two for most networks, because it directly blocks relay attacks and costs little.
With PowerShell
# Require SMB signing on the server (refuse unsigned connections)
Set-SmbServerConfiguration -RequireSecuritySignature $true -Force
# Also require it on the client side
Set-SmbClientConfiguration -RequireSecuritySignature $true -Force
Setting RequireSecuritySignature to $true means the server won’t accept a connection that can’t sign. Setting it on the client means the client won’t connect to a server that won’t sign.
With Group Policy
For a fleet, do this centrally rather than per server. The relevant security options:
Computer Configuration
> Policies
> Windows Settings
> Security Settings
> Local Policies
> Security Options
> Microsoft network server: Digitally sign communications (always) = Enabled
> Microsoft network client: Digitally sign communications (always) = Enabled
“Always” is the required setting; the “if server/client agrees” options only negotiate. Apply the server policy to your file servers (and the client policy to workstations) and let it propagate.
Enabling SMB encryption
Encryption is more selective. You usually don’t need every share encrypted — you need the ones carrying sensitive data, or any access that crosses an untrusted network, to be encrypted.
Per share (the common approach)
# Require encryption on a single sensitive share
Set-SmbShare -Name "Finance" -EncryptData $true -Force
This forces encryption only for the Finance share. Clients that can’t do SMB 3 encryption will be refused access to that share (subject to the server’s unencrypted-access setting), while other shares are unaffected. This is the least disruptive way to add encryption where it matters.
Server-wide
# Require encryption for ALL shares on the server
Set-SmbServerConfiguration -EncryptData $true -Force
Server-wide encryption is appropriate for a file server that holds nothing but sensitive data, or one exposed to a less-trusted network.
Controlling fallback for old clients
By default, a server may allow clients that don’t support encryption to access shares unencrypted. To refuse that fallback and reject any client that can’t encrypt:
# Refuse unencrypted access entirely (clients without SMB3 encryption are blocked)
Set-SmbServerConfiguration -RejectUnencryptedAccess $true -Force
Requirements and compatibility
A quick reference for what supports what.
SMB security feature requirements
| SMB signing | SMB 2.0 and later — broadly supported by modern Windows and most current devices |
|---|---|
| SMB encryption | SMB 3.0 and later (Windows Server 2012 / Windows 8 and newer) |
| SMB 3.1.1 (modern crypto) | Windows Server 2016 / Windows 10 and newer — preferred dialect |
| SMB 1 | Deprecated. Doesn't support modern signing/encryption. Remove it. |
The thread running through all of this: SMB 1 is the enemy of both features. It can’t do modern signing or any encryption, and it’s the protocol behind some of the worst worms in Windows history. Removing it is a prerequisite for a clean SMB security posture and a standard item on any Windows Server hardening checklist.
# Confirm SMB1 is not present, and remove it if it is
Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
Roll it out without breaking things
A sane order of operations keeps this from becoming an outage:
- Inventory clients and devices. List every non-Windows thing that touches your shares — NAS, printers/scanners, backup appliances, Linux/macOS clients, line-of-business hardware. Confirm each supports SMB signing and (if you’ll encrypt) SMB 3.
- Remove SMB 1 everywhere first.
- Require signing in waves, watching for connection failures.
- Add encryption per share for sensitive data; go server-wide only where appropriate.
- Set
RejectUnencryptedAccessonly after you’ve confirmed all clients of that server speak SMB 3.
# Verify a live connection's dialect and whether it's signed/encrypted
Get-SmbConnection | Select-Object ServerName, ShareName, Dialect, Signed, Encrypted
The Signed and Encrypted columns are your proof it’s actually working, not just configured. If a connection you expect to be protected shows False, the negotiation fell back — check the dialect and the server/share settings.
SMB signing and encryption checklist
- SMB 1 removed from all servers and clients
- All SMB clients/devices confirmed to support signing (and SMB 3 if encrypting)
- SMB signing required via Group Policy, rolled out in stages
- Sensitive shares set with -EncryptData $true
- Server-wide encryption applied only where appropriate
- RejectUnencryptedAccess set only after confirming SMB 3 everywhere
- Verified with Get-SmbConnection that connections show Signed/Encrypted = True
Wrapping up
SMB signing and encryption protect two different things, and the practical approach reflects that. Require signing broadly — it’s cheap, it blocks relay attacks, and Windows Server 2025 already requires it by default. Apply encryption more surgically, on the shares and servers where confidentiality actually matters or where traffic crosses networks you don’t trust.
The failure mode to plan around is legacy clients. Remove SMB 1 first, inventory every device that touches your shares, and require these protections in waves rather than flipping every switch at once. Verify with Get-SmbConnection that connections really come up signed and encrypted, and you’ve turned a long-standing weak spot in Windows file sharing into a solid one.