授權 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
SMB 3.0.2770
SMB 3.1.1785
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 選項 (只使用其中一個)
; SMB 2.0.2
"MinSmb2Dialect"=dword:00000202
; SMB 2.1.0
"MinSmb2Dialect"=dword:00000210
; SMB 3.0.0
"MinSmb2Dialect"=dword:00000300
; SMB 3.0.2
"MinSmb2Dialect"=dword:00000302
; SMB 3.1.1
"MinSmb2Dialect"=dword:00000311
CMD
:: 選項 (只使用其中一個)

:: 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
:: SMB 3.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

# 選項 (只使用其中一個)
# 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
# SMB 3.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