網路安全性: 限制 NTLM: 這個網域中的 NTLM 驗證 的登錄值 RestrictNTLMInDomain電腦HKLM\System\CurrentControlSet\Services\Netlogon\Parameters

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

登錄

RestrictNTLMInDomain

REG_DWORD電腦
啟用時的值
取決於選項值
元素
網路安全性: 限制 NTLM: 這個網域中的 NTLM 驗證
選項
項目儲存的值
停用0
拒絕網域伺服器的網域帳戶1
拒絕網域帳戶3
拒絕網域伺服器5
全部拒絕7
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters]

; 選項 (只使用其中一個)
; 停用
"RestrictNTLMInDomain"=dword:00000000
; 拒絕網域伺服器的網域帳戶
"RestrictNTLMInDomain"=dword:00000001
; 拒絕網域帳戶
"RestrictNTLMInDomain"=dword:00000003
; 拒絕網域伺服器
"RestrictNTLMInDomain"=dword:00000005
; 全部拒絕
"RestrictNTLMInDomain"=dword:00000007
CMD
:: 選項 (只使用其中一個)

:: 停用
reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 0 /f
:: 拒絕網域伺服器的網域帳戶
reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 1 /f
:: 拒絕網域帳戶
reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 3 /f
:: 拒絕網域伺服器
reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 5 /f
:: 全部拒絕
reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 7 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Force | Out-Null

# 選項 (只使用其中一個)
# 停用
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 0 -Force | Out-Null
# 拒絕網域伺服器的網域帳戶
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 1 -Force | Out-Null
# 拒絕網域帳戶
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 3 -Force | Out-Null
# 拒絕網域伺服器
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 5 -Force | Out-Null
# 全部拒絕
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 7 -Force | Out-Null