en-US windows computer

Mandate the minimum version of SMB

Verified with Windows 11 25H2 — updated on July 30, 2026

Windows 11 25H2

Supported on: At least Windows Server 2022, Windows 11

Path in the GPO console

Computer Configuration\Administrative Templates\Network\Lanman Server

Description

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.

Registry

HKLM Software\Policies\Microsoft\Windows\LanmanServer

More options available

Options

Version:
MinSmb2Dialect enum
  • SMB 2.0.2 -> 514 (default)
  • SMB 2.1.0 -> 528
  • SMB 3.0.0 -> 768
  • SMB 3.0.2 -> 770
  • SMB 3.1.1 -> 785

MDM / Intune (CSP)

./Device/Vendor/MSFT/Policy/Config/LanmanServer/MinSmb2Dialect
Device Since Windows 11, version 24H2 [10.0.26100.3613] and later Official mapping (Microsoft Learn)

Microsoft Learn documentation Mapping data: Microsoft Learn (CC BY 4.0)

CSP values
  • 514 (Default) - SMB 2.0.2.
  • 528 - SMB 2.1.0.
  • 768 - SMB 3.0.0.
  • 770 - SMB 3.0.2.
  • 785 - SMB 3.1.1.

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Mandate the minimum version of SMB
; State: Enabled
; Supported on: At least Windows Server 2022, Windows 11

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LanmanServer]
"MinSmb2Dialect"=dword:00000202
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Mandate the minimum version of SMB
# State: Enabled
# Supported on: At least Windows Server 2022, Windows 11

$path = 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'MinSmb2Dialect' -Value 514 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview