Configure SMB v1 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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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 SilentlyContinueApplication
Microsoft Security Baseline (MSS, SecGuide) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.