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

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

登錄

AuditReceivingNTLMTraffic

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]

; 選項 (只使用其中一個)
; 停用
"AuditReceivingNTLMTraffic"=dword:00000000
; 啟用網域帳戶的稽核
"AuditReceivingNTLMTraffic"=dword:00000001
; 啟用所有帳戶的稽核
"AuditReceivingNTLMTraffic"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 停用
reg add "HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0" /v "AuditReceivingNTLMTraffic" /t REG_DWORD /d 0 /f
:: 啟用網域帳戶的稽核
reg add "HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0" /v "AuditReceivingNTLMTraffic" /t REG_DWORD /d 1 /f
:: 啟用所有帳戶的稽核
reg add "HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0" /v "AuditReceivingNTLMTraffic" /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 'AuditReceivingNTLMTraffic' -PropertyType DWord -Value 0 -Force | Out-Null
# 啟用網域帳戶的稽核
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0' -Name 'AuditReceivingNTLMTraffic' -PropertyType DWord -Value 1 -Force | Out-Null
# 啟用所有帳戶的稽核
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0' -Name 'AuditReceivingNTLMTraffic' -PropertyType DWord -Value 2 -Force | Out-Null