封鎖 NTLM 伺服器例外清單 的登錄值 BlockNTLMServerExceptionList電腦HKLM\Software\Policies\Microsoft\Windows\LanmanWorkstation

原則 ID
Pol_BlockNTLMServerExceptionList
適用範圍
電腦設定
支援的作業系統
至少需要 Windows Server 2025、Windows 11
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
網路 › Lanman 工作站

登錄

BlockNTLMServerExceptionList

REG_MULTI_SZ電腦
啟用時的值
取決於選項值
元素
-
值類型
REG_MULTI_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>
; hex(2) 與 hex(7) 資料必須以十六進位 (UTF-16LE) 撰寫
"BlockNTLMServerExceptionList"=hex(7):<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

reg add "HKLM\Software\Policies\Microsoft\Windows\LanmanWorkstation" /v "BlockNTLMServerExceptionList" /t REG_MULTI_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation' -Name 'BlockNTLMServerExceptionList' -PropertyType MultiString -Value '<輸入值>' -Force | Out-Null