19 C
Texas

How to enable and disable SMB1/SMB2 in Windows 10

Hello! Windows 10 is an operating system that integrates various protocols to ensure its use with internal and external processes. Indeed, one of these protocols is Server Message Block, better known as SMB. This is a mechanism that allows network file sharing. In addition, it is integrated by a set of message packages that allow us to define which version of the protocol is to be used. Therefore, it is possible to share files, printers, and data on a local network. SMB is available in versions SMB1 or SMB2. And each one has its own characteristics. Similarly, in Windows 10 Home and Windows 10 Professional editions, SMBv1 is already disabled. Consequently, only in these versions, only SMB2 is offered. So it’s important to know how to enable and disable SMB1/SMB2 in Windows 10.

Main advantages of SMB

This protocol also allows communication between Windows and Linux operating systems. On the other hand, it also has the following advantages:

  • Printing on a local network
  • Extended file attribute management
  • Unicode support
  • File, directory and shared access authentication

Benefits of SMB2

In addition to the features present in its predecessor, this protocol incorporates new functions:

  • Improvements in the use of the network
  • More complete readings and writings
  • MTU Support
  • Oplock customer lease model
  • Soporta versiones anteriores de SMB

How to turn SMB1 on or off in Windows 10 using PowerShell.

First, check if SMB1 is active. With this intention, it opens a PowerShell with administrator privileges. To do this, press the Win+x combination and select the app from the list.

Runs a PowerShell with administrative privileges
- Advertisement -

Then run this command:

Get-WindowsOptionalFeature –Online –FeatureName SMB1Protocol

To disable SMB1 please run the following:

Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

To enable it, just execute the following command. Also, press Y to restart the computer and confirm the changes.

Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

How to turn SMB2 on or off in Windows 10 using PowerShell.

As with SMB1, this time we will also use PowerShell with administrator privileges. First, check the service status with the following command:

Get-SmbServerConfiguration | Select EnableSMB2Protocol

To disable SMB2 please run:

Set-SmbServerConfiguration -EnableSMB2Protocol $false

Please note that you must confirm the operation:

To activate the protocol, please run it:

Set-SmbServerConfiguration -EnableSMB2Protocol $true

Once again, you must confirm the action:

Ultimately we’ve seen how to enable and disable SMB1/SMB2 in Windows 10. As you can see, it’s a simple process that involves easy handling of PowerShell. In addition, you can manage both protocols independently. Well, that’s it for now. Before I say goodbye, take a look at our ReactOS post. See you soon!

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article