disable SMB
From KlavoWiki
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