disable SMB
From KlavoWiki
Windows PowerShell as an Administrator
Disable SMB1
Set-SmbServerConfiguration -EnableSMB1Protocol $false
Enable SMB1
Set-SmbServerConfiguration -EnableSMB1Protocol $true
The same can be done for SMB2
Set-SmbServerConfiguration -EnableSMB2Protocol $false