如何在 Windows 和 Windows Server 中检测、启用和禁用 SMBv1、SMBv2 和 SMBv3原创
金蝶云社区-秋收冬藏
秋收冬藏
2人赞赏了该文章 1867次浏览 未经作者许可,禁止转载编辑于2019年03月06日 09:43:44


PowerShell 方法

 

SMBV1

检测  Get-SmbServerConfiguration | Select EnableSMB1Protocol

禁用  Set-SmbServerConfiguration -EnableSMB1Protocol $false

启用  Set-SmbServerConfiguration -EnableSMB1Protocol $true

 

SMBV2/v3

检测  Get-SmbServerConfiguration | Select EnableSMB2Protocol

禁用  Set-SmbServerConfiguration -EnableSMB2Protocol $false

启用  Set-SmbServerConfiguration -EnableSMB2Protocol $true

赞 2