disable SMB

From KlavoWiki
Revision as of 05:15, 31 August 2017 by David (Sọ̀rọ̀ | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Powershell

Disable SMB1

Set-SmbServerConfiguration -EnableSMB1Protocol $false

Enable SMB1

Set-SmbServerConfiguration -EnableSMB1Protocol $true

The same can be done for SMB2

Set-SmbServerConfiguration -EnableSMB2Protocol $false

Registry

In this example SMB1 is disbled and SMB2 is enabled.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"SMB1"=dword:00000000
"SMB2"=dword:00000001