Network security: Restrict NTLM: NTLM authentication in this domain: registry value RestrictNTLMInDomainComputerHKLM\System\CurrentControlSet\Services\Netlogon\Parameters
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
RestrictNTLMInDomain
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Network security: Restrict NTLM: NTLM authentication in this domain
| Item | Stored value |
|---|---|
| Disable | 0 |
| Deny for domain accounts to domain servers | 1 |
| Deny for domain accounts | 3 |
| Deny for domain servers | 5 |
| Deny all | 7 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters] ; Options (use only one) ; Disable "RestrictNTLMInDomain"=dword:00000000 ; Deny for domain accounts to domain servers "RestrictNTLMInDomain"=dword:00000001 ; Deny for domain accounts "RestrictNTLMInDomain"=dword:00000003 ; Deny for domain servers "RestrictNTLMInDomain"=dword:00000005 ; Deny all "RestrictNTLMInDomain"=dword:00000007
CMD
:: Options (use only one) :: Disable reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 0 /f :: Deny for domain accounts to domain servers reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 1 /f :: Deny for domain accounts reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 3 /f :: Deny for domain servers reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 5 /f :: Deny all reg add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v "RestrictNTLMInDomain" /t REG_DWORD /d 7 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Force | Out-Null # Options (use only one) # Disable New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 0 -Force | Out-Null # Deny for domain accounts to domain servers New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 1 -Force | Out-Null # Deny for domain accounts New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 3 -Force | Out-Null # Deny for domain servers New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 5 -Force | Out-Null # Deny all New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\Netlogon\Parameters' -Name 'RestrictNTLMInDomain' -PropertyType DWord -Value 7 -Force | Out-Null