SMB の最大バージョンを義務付ける のレジストリ値 MaxSmb2Dialect (LanmanServer)コンピューターHKLM\Software\Policies\Microsoft\Windows\LanmanServer

ポリシー ID
Pol_MaxSmb2Dialect
適用対象
コンピューターの構成
サポートされるバージョン
Windows Server 2022 以降または Windows 11 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
ネットワーク › LAN Manager サーバー

レジストリ

MaxSmb2Dialect

REG_DWORDコンピューター
有効時の値
オプションの値に依存
要素
バージョン:
オプション
項目保存される値
SMB 3.1.1785
SMB3.0.2770
SMB 3.0.0768
SMB 2.1.0528
SMB 2.0.2514
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LanmanServer]

; 選択項目 (1 つだけ使用)
; SMB 3.1.1
"MaxSmb2Dialect"=dword:00000311
; SMB3.0.2
"MaxSmb2Dialect"=dword:00000302
; SMB 3.0.0
"MaxSmb2Dialect"=dword:00000300
; SMB 2.1.0
"MaxSmb2Dialect"=dword:00000210
; SMB 2.0.2
"MaxSmb2Dialect"=dword:00000202
CMD
:: 選択項目 (1 つだけ使用)

:: SMB 3.1.1
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "MaxSmb2Dialect" /t REG_DWORD /d 785 /f
:: SMB3.0.2
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "MaxSmb2Dialect" /t REG_DWORD /d 770 /f
:: SMB 3.0.0
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "MaxSmb2Dialect" /t REG_DWORD /d 768 /f
:: SMB 2.1.0
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "MaxSmb2Dialect" /t REG_DWORD /d 528 /f
:: SMB 2.0.2
reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanServer" /v "MaxSmb2Dialect" /t REG_DWORD /d 514 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# SMB 3.1.1
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 785 -Force | Out-Null
# SMB3.0.2
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 770 -Force | Out-Null
# SMB 3.0.0
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 768 -Force | Out-Null
# SMB 2.1.0
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 528 -Force | Out-Null
# SMB 2.0.2
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanServer' -Name 'MaxSmb2Dialect' -PropertyType DWord -Value 514 -Force | Out-Null