Mandater la version maximale de SMB : valeur de Registre MaxSmb2Dialect (LanmanWorkstation)OrdinateurHKLM\Software\Policies\Microsoft\Windows\LanmanWorkstation
- ID de stratégie
- Pol_MaxSmb2Dialect
- Étendue
- Configuration ordinateur
- Pris en charge sur
- Au moins Windows Server 2025, Windows 11
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Catégorie
- Réseau › Station de travail LANMAN
Registre
MaxSmb2Dialect
REG_DWORDOrdinateur- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Version :
| Entrée | Valeur stockée |
|---|---|
| PME 3.1.1 | 785 |
| PME 3.0.2 | 770 |
| PME 3.0.0 | 768 |
| PME 2.1.0 | 528 |
| PME 2.0.2 | 514 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LanmanWorkstation] ; Options (en utiliser une seule) ; PME 3.1.1 "MaxSmb2Dialect"=dword:00000311 ; PME 3.0.2 "MaxSmb2Dialect"=dword:00000302 ; PME 3.0.0 "MaxSmb2Dialect"=dword:00000300 ; PME 2.1.0 "MaxSmb2Dialect"=dword:00000210 ; PME 2.0.2 "MaxSmb2Dialect"=dword:00000202
CMD
:: Options (en utiliser une seule) :: PME 3.1.1 reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanWorkstation" /v "MaxSmb2Dialect" /t REG_DWORD /d 785 /f :: PME 3.0.2 reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanWorkstation" /v "MaxSmb2Dialect" /t REG_DWORD /d 770 /f :: PME 3.0.0 reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanWorkstation" /v "MaxSmb2Dialect" /t REG_DWORD /d 768 /f :: PME 2.1.0 reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanWorkstation" /v "MaxSmb2Dialect" /t REG_DWORD /d 528 /f :: PME 2.0.2 reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanWorkstation" /v "MaxSmb2Dialect" /t REG_DWORD /d 514 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation' -Force | Out-Null # Options (en utiliser une seule) # PME 3.1.1 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 785 -Force | Out-Null # PME 3.0.2 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 770 -Force | Out-Null # PME 3.0.0 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 768 -Force | Out-Null # PME 2.1.0 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 528 -Force | Out-Null # PME 2.0.2 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 514 -Force | Out-Null