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

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

レジストリ

MinSmb2Dialect

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

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

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

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

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