March 19

0 comments

How To Quickly Disable SMBv1 in Windows

By Casey

March 19, 2020


Are you wanting to disable the outdated SMBv1 protocol on a server or a client machine? Here is the fastest way to do so.

 

 

How To Disable SMBv1 On A SMB Server

Windows 8 and Windows Server 2012

To disable SMBv1 on the SMB server, run the following cmdlet in PowerShell:

Set-SmbServerConfiguration -EnableSMB1Protocol $false
You do not have to restart.

 

Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008

To disable SMBv1 on the SMB server, run the following cmdlet in PowerShell 2.0 or later:

Set-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters” SMB1 -Type DWORD -Value 0 -Force

Restart the computer.

 

Windows 8.1, Windows 10, Windows 2012 R2, and Windows Server 2016

To disable SMBv1 on the SMB server, run the following cmdlet in PowerShell:

Remove-WindowsFeature FS-SMB1

Restart the computer.

 

 

How To Disable SMBv1 On A SMB Client

Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012

To disable SMBv1 on the SMB client, run the following commands in PowerShell:

sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
sc.exe config mrxsmb10 start= disabled

Restart the computer.

 

Windows 8.1, Windows 10, Windows 2012 R2, and Windows Server 2016

To disable SMBv1 on the SMB client, run the following cmdlet in PowerShell:

Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol

Restart the computer.

 

Did this work for you? Please let us know in the comments.

Leave a Reply

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

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}