+3 votes
1.2k views
Enable or disable SMB1 SMB2 Windows 10 PowerShell

in Windows 10 by (551k points)
recategorized by | 1.2k views

1 Answer

+4 votes
Best answer

1. Enable or disable SMB1 Windows 10 PowerShell
2. Enable or disable SMB2 Windows 10 PowerShell

Windows 10 is a system that integrates different protocols that will make its use comprehensive with both internal and external processes and one of these protocols is the SMB protocol. SMB (Server Message Block) has been developed as a network file sharing protocol which is made up of a set of message packages which seek to define which version of the protocol to use, this allows file sharing to be possible , printers, and more on a local network..

 

SMB Advantages
SMB gives us the possibility of sharing between Windows and Linux operating systems, this gives us the possibility of:

 

  • Print on a local network
  • Extended handling of file attributes
  • File and lock record
  • Unicode support
  • Dialect negotiation
  • File, directory and shared access authentication

 

 

SMB is available in the SMB1 or SMB2 versions where each one has different characteristics, it should be noted that in the Windows 10 Home and Windows 10 Professional editions SMBv1 is already disabled and only SMB2 is offered.

 

 

SMB2 Advantages
This is because SMB2 has better functions such as:

 

  • Improvements in the use of the network
  • More complete reads and writes
  • MTU support
  • Oplock Client Lease Model
  • Supports older versions of SMB and more

 

 

With this tutorial we are going to learn how to manage these two protocols through PowerShell as administrators and thus be able to activate or deactivate SMB1 and SMB2..

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 


1. Enable or disable SMB1 Windows 10 PowerShell


We are going to see different actions to use, these are:

 

Step 1

Check if SMB1 is active: for this we execute the following. In the State line we check the current state.
 Get-WindowsOptionalFeature –Online –FeatureName SMB1Protocol 
image

 

 

Step 2

To disable SMB1 we execute:
 Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol 
image

 

 

Step 3

To enable it we run. We enter the letter Y to restart the system.
 Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol 
image

 

 


2. Enable or disable SMB2 Windows 10 PowerShell


As with SMB1, we have some commands to manage this protocol from PowerShell, it is possible.

 

Step 1

To check your current status:
 Get-SmbServerConfiguration | SelectEnableSMB2Protocol 
image

 

 

Step 2

To disable SMB2 we execute:
 Set-SmbServerConfiguration -EnableSMB2Protocol $ false 
Step 3

We must confirm the action:

 

 

 

image

 

Step 4

To activate it we execute:
 Set-SmbServerConfiguration EnableSMB2Protocol $ true 
image

 

With these commands we have managed SMB1 or SMB 2 from Windows PowerShell in a functional way.

 


by (3.5m points)

Related questions

+3 votes
1 answer
asked Oct 10, 2019 in Windows 10 by backtothefuture (551k points) | 1.9k views
+4 votes
1 answer
asked Feb 2, 2021 in WindowsServer by backtothefuture (551k points) | 655 views
+3 votes
1 answer
+3 votes
1 answer
asked Jun 5, 2020 in Virtualization by backtothefuture (551k points) | 1.2k views
+3 votes
1 answer
asked May 28, 2021 in Windows 10 by backtothefuture (551k points) | 124 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users