Open in the explorer

Configure SMB v1 server

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › MS Security Guide
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
SecGuide.admx
Internal name
SecGuide/Pol_SecGuide_0001_SMBv1_Server

Explanation

Disabling this setting disables server-side processing of the SMBv1 protocol. (Recommended.)

Enabling this setting enables server-side processing of the SMBv1 protocol. (Default.)

Changes to this setting require a reboot to take effect.

For more information, see https://support.microsoft.com/kb/2696547

Use cases

Disables the SMBv1 server (SMB1 value = 0), an obsolete and vulnerable protocol that Microsoft strongly advises against. It is no longer installed by default on Windows 11 or Windows Server 2019 and later.

Before enforcing it, turn on auditing (Set-SmbServerConfiguration -AuditSmb1Access $true) and watch event 3000 in the SMBServer/Audit log to find old devices (copiers, NAS) that still depend on it. Be careful on domain controllers.

Microsoft source: How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows

Registry

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
Value name
SMB1
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: SecGuide/Pol_SecGuide_0001_SMBv1_Server
$k = 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SMB1' -Value 1 -Type DWord

Disable

# Disable: SecGuide/Pol_SecGuide_0001_SMBv1_Server
$k = 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SMB1' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": SecGuide/Pol_SecGuide_0001_SMBv1_Server
$k = 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters'
Remove-ItemProperty -Path $k -Name 'SMB1' -ErrorAction SilentlyContinue

Application

Microsoft Security Baseline (MSS, SecGuide) (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.