[How To] Enable Or Disable SMB Protocols In Windows 10

This guide will show how to enable or disable SMB protocols in Windows 10/8/7. To prevent yourself from ransomware attacks, you may disable SMBv1 protocol.

Kapil Arya
11x Microsoft MVP · Admin
3 min read
Add as a preferred
source on Google

The Server Message Block (SMB) protocol is basically a file sharing protocol present in Windows. It allows applications to read/write to files and urge requests for services from server manager for network connected computers. There are three versions of this protocol, SMB Version 1 (SMBv1), SMB Version 2 (SMBv2), SMB Version 3 (SMBv3). SMBv3 is the current version and SMBv1 is quite outdated on the present date. Windows comes with SMBv1 enabled by default.

With the increased ransomware attacks and due to most recent WannaCry ransomware hiccup, Microsoft has recommended users to disable the outdated SMBv1 protocol from their systems. As SMBv1 is much older technology so it is highly vulnerable and can be easily used by ransomware attackers to target the victim machines. However, Microsoft also recommends that you do not leave SMBv2, SMBv3 disabled, otherwise it will break functionality of your Windows.

So in this article, we’ll show you how to enable or disable these protocols on your Windows system.

How To Enable Or Disable SMB Protocols In Windows 10/8.1/8/7

WAY 1 – Using Windows Features Applet (Disable SMBv1 Protocol)

1. Using Cortana or Windows Search, look for term features. From results, click Turn Windows Features On or Off. See this fix, if you find Turn Windows Features On or Off applet blank.

2. In Turn Windows Features On or Off window, scroll down and look for SMB 1.0/CIFS File Sharing Support which must be checked by default. Uncheck this option to disable SMBv1 and click OK.

How To Enable Or Disable SMB Protocols In Windows 10

Using this way you can’t disable other SMB protocols such as SMBv2 and SMBv3. So for that, you can tweak registry as mentioned below.

WAY 2 – Using Registry (Disable SMBv1, SMBv2, SMBv3 Protocols)

Registry Disclaimer: The further steps will involve registry manipulation. Making mistakes while manipulating registry could affect your system adversely. So be careful while editing registry entries and create a System Restore point first.

1. Press W8K + R and put regedit in Run dialog box to open Registry Editor (if you’re not familiar with Registry Editor, then click here). Click OK.

Windows 10 Registry Editor

2. In the Registry Editor window, navigate to following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

How To Enable Or Disable SMB Protocols In Windows 10

3. In the right pane of Parameters registry key, simply create a new registry DWORD (REG_DWORD) named SMB1 to disable SMBv1 protocol and set its Value data to 0. Similarly, to disable SMBv2 and SMBv3 protocols simultaneously, create SMB2 registry DWORD (REG_DWORD) and set its Value data to 0. Once done, close the Registry Editor and reboot to make changes effective.

You can re-enable SMBv1, SMBv2, SMBv3 protocols anytime in future, by simply deleting SMB1, SMB2 registry DWORDs created above. However, better if you keep SMBv1 disabled at all (in case if you’re on an older Windows edition/build). Also its worth to mention here, keep your system updated with latest security updates offered by Microsoft, to stay safe from Ransomware phenomenon.

That’s it!

Share this article
https://www.kapilarya.com/how-to-enable-or-disable-smb-protocols-in-windows-10

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.

10 Comments
Jason Hutton

Finally a way that worked. The registry edit method fixed my android/linux filesharing. Thanks.

Kapil Arya Author

^^ Glad to help 😎

Mike

How to enable smb2 or smb3? You failed to address that topic.

Kapil Arya Author

^^ Read step 3 and WAY 2 heading again :) Clearly mentioned that you can create SMB2 registry DWORD and similarly SMB3 registry DWORD just like SMB1 registry DWORD to enable corresponding protocols.

Leonid

The windows 10 updated my TP-LINK AC1900 Router and I lost the access to UCB 3 hard drive because Router (hardware v1) support SMB1 only but windows10 turned it off. I turned on SMB1 according to your instruction.

Thanks a lot!
Leonid

Kapil Arya Author

^^ Happy to help 😊

Jeff H

Since loading the latest windows 10 all of my home pc’s I can see only the main pc and its drives and files. Homegroup is gone. The main pc it sees only itself and the other network pc’s see only the main computer. I’ve gone through setting the network discovery options and after two hours I don’t know what to do next. i’m disappointed in a product like this having such a basic problem as this. My son is having the same problem with his home network as well. Any Suggestions?

Kapil Arya Author
Bill

Mike
How to enable smb2 or smb3? You failed to address that topic.

Kapil Arya
^^ Read step 3 and WAY 2 heading again :) Clearly mentioned that you can create SMB2 registry DWORD and similarly SMB3 registry DWORD just like SMB1 registry DWORD to enable corresponding protocols.

That method you only specifically mention DISABLING SMB1,2, and 3. Although I believe you mean set the key to 0x00000001 (1) to make them enabled.

Wim

My SMB2 is true, but where can I find the SMB2 feature software.

Leave a Comment

Your email address will not be published. Required fields are marked *