disable SMB: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
(Created page with "Windows PowerShell as an Administrator Disable SMB1 <pre> Set-SmbServerConfiguration -EnableSMB1Protocol $false </pre> Enable SMB1 <pre> Set-SmbServerConfiguration -EnableSM...")
 
No edit summary
 
Line 1: Line 1:
Windows PowerShell as an Administrator
== Powershell ==


Disable SMB1
Disable SMB1
Line 14: Line 14:
<pre>
<pre>
Set-SmbServerConfiguration -EnableSMB2Protocol $false
Set-SmbServerConfiguration -EnableSMB2Protocol $false
</pre>
= Registry =
In this example SMB1 is disbled and SMB2 is enabled.
<pre>
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"SMB1"=dword:00000000
"SMB2"=dword:00000001
</pre>
</pre>


[[Category : Windows]]
[[Category : Windows]]

Latest revision as of 05:15, 31 August 2017

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