網路安全性: 限制 NTLM: 連入 NTLM 流量 的登錄值 RestrictReceivingNTLMTraffic電腦HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0

類別
安全性設定 › 本機原則 › 安全性選項
適用範圍
電腦設定
來源
Windows 11 (版本 26H2 · 26300.9457)

登錄

RestrictReceivingNTLMTraffic

REG_DWORD電腦
啟用時的值
取決於選項值
元素
網路安全性: 限制 NTLM: 連入 NTLM 流量
選項
項目儲存的值
全部允許0
拒絕所有網域帳戶1
拒絕所有帳戶2
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\MSV1_0]

; 選項 (只使用其中一個)
; 全部允許
"RestrictReceivingNTLMTraffic"=dword:00000000
; 拒絕所有網域帳戶
"RestrictReceivingNTLMTraffic"=dword:00000001
; 拒絕所有帳戶
"RestrictReceivingNTLMTraffic"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 全部允許
reg add "HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0" /v "RestrictReceivingNTLMTraffic" /t REG_DWORD /d 0 /f
:: 拒絕所有網域帳戶
reg add "HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0" /v "RestrictReceivingNTLMTraffic" /t REG_DWORD /d 1 /f
:: 拒絕所有帳戶
reg add "HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0" /v "RestrictReceivingNTLMTraffic" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0' -Force | Out-Null

# 選項 (只使用其中一個)
# 全部允許
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0' -Name 'RestrictReceivingNTLMTraffic' -PropertyType DWord -Value 0 -Force | Out-Null
# 拒絕所有網域帳戶
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0' -Name 'RestrictReceivingNTLMTraffic' -PropertyType DWord -Value 1 -Force | Out-Null
# 拒絕所有帳戶
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0' -Name 'RestrictReceivingNTLMTraffic' -PropertyType DWord -Value 2 -Force | Out-Null