Guide · Security
What is SMBv1 and why turn it off?
SMBv1 is the first version of the protocol Windows uses for file and printer sharing, dating back to the 1980s. Some servers still have it switched on, and that is one of the best-known risks on a network. This guide explains why SMBv1 should be turned off, how to check whether it is on and how to switch it off without breaking anything.
What are SMB and SMBv1?
SMB (Server Message Block) is the protocol Windows computers use to reach shared folders, printers and other resources. When you open a network drive, SMB runs in the background. The versions in use today are SMB 2 and SMB 3; they offer encryption, signing and much better performance.
SMBv1 is the original version. It has none of the modern security features and it is slow. Microsoft deprecated SMBv1 in 2014 and clearly recommends not using it.
Why is it dangerous?
In March 2017 Microsoft fixed serious flaws in SMBv1 with security update MS17-010. A few weeks later, in May 2017, the WannaCry ransomware used an attack tool called EternalBlue to exploit these flaws and spread to hundreds of thousands of computers worldwide. Unpatched machines with SMBv1 switched on were infected from a single compromised computer on the network, without any user clicking anything.
Those flaws are patched today, but as long as SMBv1 stays on, so does the risk of a similar flaw being found. Keeping an old protocol you do not use switched on brings no benefit.
Client side and server side
SMBv1 has two sides. The server side lets others connect to this machine's shares with SMBv1; the client side lets this machine connect to other devices with SMBv1. The risk runs both ways: an open server side exposes the machine to attack, and an open client side lets it connect to an old, insecure share. It is best to switch both off. The feature removal commands below remove both sides.
Which Windows versions ship with it on?
- Windows Server 2019 and later, Windows 11: SMBv1 is not installed by default.
- Windows 10 and Windows Server version 1709 and later: SMBv1 is not installed on a clean installation (on Windows 10 the client side can differ between editions).
- Windows Server 2016 and 2012 R2: SMBv1 is installed and on; it has to be switched off by hand.
- Systems upgraded in place: an upgrade does not remove SMBv1 by itself. A server upgraded from an older version may still have it on.
Is SMBv1 on? How to check
In PowerShell run as administrator, check the server side with:
Get-SmbServerConfiguration | Select-Object EnableSMB1Protocol
If the result is True, SMBv1 is on. Whether the feature is installed is shown by Get-WindowsFeature FS-SMB1 on Windows Server and by Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol on Windows 10 and 11.
Before turning it off: who uses it?
Some old devices still speak only SMBv1: older scanners and multifunction printers that save scans to a network folder, old NAS units, old recorders and some applications that were never updated. When you turn SMBv1 off, these devices can no longer write to the shared folder.
So find out who uses it first. On Windows Server 2016 and later you can log SMBv1 access:
Set-SmbServerConfiguration -AuditSmb1Access $true
Wait a few days or a week, then open Event Viewer at Applications and Services Logs › Microsoft › Windows › SMBServer › Audit. Every client that connects with SMBv1 appears there with its address. If the log stays empty, you can safely turn SMBv1 off. If a device appears, update its firmware first or replace the method with one that supports SMB 2 (for example, scan to email).
How to turn SMBv1 off
- Disable the server side:
Set-SmbServerConfiguration -EnableSMB1Protocol $false - Remove the feature (Windows Server):
Uninstall-WindowsFeature FS-SMB1 - On Windows 10 and 11:
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol - Restart. Removing the feature needs a restart; plan it for a maintenance window.
- For many machines, roll out the same setting with Group Policy so that SMBv1 also stays off on newly installed machines.
After the change, watch for scanner and file share complaints for a few days. If something breaks you can switch it back on temporarily, but the real fix is to update or replace the old device.
Keeping track on every machine
You do not have to connect to each server: Secura RMM shows whether SMBv1 is on for every Windows machine and raises an alert for those where it is. The check is listed on the security page together with the other protection checks such as antivirus, firewall and remote desktop settings. See vulnerability and patch tracking for details.
Frequently asked questions
Will shared folders stop working if I turn SMBv1 off?
No. Windows Vista and later use SMB 2 or newer. Only old devices that support nothing but SMBv1 are affected.
If updates are installed, is leaving SMBv1 on a problem?
The known flaws were fixed by updates, but keeping an old protocol you do not use switched on is an unnecessary risk. Microsoft recommends turning it off as well.
What if an old scanner only supports SMBv1?
First look for a firmware update from the manufacturer. If there is none, use another way of saving scans, such as scan to email, or replace the device.
Related: Vulnerability and patch tracking · Security · Windows Server 2016 end of support