Skip to content

Instantly share code, notes, and snippets.

@mrzcn
Created December 13, 2020 10:18
Show Gist options
  • Select an option

  • Save mrzcn/deb9ce899d6a559c94de98be771c530c to your computer and use it in GitHub Desktop.

Select an option

Save mrzcn/deb9ce899d6a559c94de98be771c530c to your computer and use it in GitHub Desktop.
Commands to Disable SMBv1 on Windows
Set-itemproperty -path “HKLM:\System\CurrentControlSet\Services\LanmanServer\Parameters” SMB1 -Type Dword -Value 0 -Force
Set-itemProperty -path “HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters” SMB2 -Type Dword -Value 1 -Force
Set-itemProperty -path “HKLM:\SYSTEM\CurrentControlSet\services\lanmanworkstation” -name “DependOnService” -value “Bowser”, “MRxSmb20”, “NSI” -type MultiString
Set-itemProperty -path “HKLM:\SYSTEM\CurrentControlSet\services\mrxsmb10” -name “Start” -type Dword -Value 4 -Force
Set-itemProperty -path “HKLM:\SYSTEM\CurrentControlSet\services\mrxsmb20” -name “Start” -type Dword -Value 2 -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment