Skip to content

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.

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!


Facebook Google+ Twitter

6 Comments

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

  • Kapil Arya

    ^^ Glad to help 😎

  • 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.

  • 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

    ^^ Happy to help 😊

  • Leave a Reply

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

    Recent Comments

    • Kapil Arya : ^^ Refer: https://www.kapilarya.com/the-operating-system-is-not-presen...

      16 hours ago

    • Kapil Arya : ^^ I recommend uninstalling those third-party utilities, it must solve...

      16 hours ago

    • Kapil Arya : ^^ Alright, try installing camera software/utilities from HP. See if t...

      16 hours ago

    • Amy R : I started getting this error after install bit defender and malware by...

      19 hours ago