Open in the explorer

Mandate the minimum version of SMB

Mandater la version minimale de SMB

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Lanman Server FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Serveur Lanman
Supported on
At least Windows Server 2022, Windows 11 FR: Au minimum Windows Server 2022, Windows 11
ADMX file
LanmanServer.admx
Internal name
LanmanServer/Pol_MinSmb2Dialect

Explanation

This policy controls the minimum version of SMB protocol

Note: This group policy does not prevent use of SMB 1 if that component is still installed and enabled.

French text from Windows 11 26H2

Cette stratégie contrôle la version minimale du protocole SMB

Remarque : cette stratégie de groupe n’empêche pas l’utilisation de SMB 1 si ce composant est toujours installé et activé.

Use cases

Enforces a minimum SMB 2/3 protocol version on the server, for example SMB 3.1.1 to refuse older dialects. Useful on sensitive file servers to guarantee the most modern encryption and integrity checks.

Note from the policy text: it does not prevent SMB1 use if that component is still installed and enabled, so disable it separately.

Microsoft source: SMB security hardening

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LanmanServer
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: LanmanServer/Pol_MinSmb2Dialect
$k = 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Version
# Possible options:
#   SMB 2.0.2 = 514
#   SMB 2.1.0 = 528
#   SMB 3.0.0 = 768
#   SMB 3.0.2 = 770
#   SMB 3.1.1 = 785
Set-ItemProperty -Path $k -Name 'MinSmb2Dialect' -Value 514 -Type DWord

Disable

# Disable: LanmanServer/Pol_MinSmb2Dialect
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": LanmanServer/Pol_MinSmb2Dialect
$k = 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer'
Remove-ItemProperty -Path $k -Name 'MinSmb2Dialect' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Version:Version :MinSmb2DialectDrop-down listenumMinSmb2DialectREG_DWORD
Required · Default choice (UI): #0
LabelValue
SMB 2.0.2REG_DWORD = 514
SMB 2.1.0REG_DWORD = 528
SMB 3.0.0REG_DWORD = 768
SMB 3.0.2REG_DWORD = 770
SMB 3.1.1REG_DWORD = 785

Availability

Windows 11

✓ 26H2✓ 25H2✓ 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016