[Windows] Windows Client disable SMB1.0

** Windows 8.1、Windows 10、Windows 2012 R2 和 Windows Server 2016 **
method#1 GUI
Windows 功能 > (V)取消打勾 “SMB 1.0/CIFS 檔案共用支援"

method#2 CLI (PS)
PS C:\> Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol
(啟用)
PS: C:\> Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol

 

** Windows 7 **
PS C:\>Set-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 0 -Force
(啟用)
PS C:\> Set-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 1 -Forcehttps://flic.kr/p/23eXCDz

 

windows10-stop-smb1

 

Reference :

Microsoft 如何在 Windows 和 Windows Server 中偵測、啟用及停用 SMBv1、SMBv2 和 SMBv3