Network security: LAN Manager authentication level: registry value LmCompatibilityLevelComputerHKLM\System\CurrentControlSet\Control\Lsa
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
LmCompatibilityLevel
REG_DWORDComputerHKLM\System\CurrentControlSet\Control\Lsa Current key
- Enabled value
- Depends on the option value
- Element
- Network security: LAN Manager authentication level
| Item | Stored value |
|---|---|
| Send LM & NTLM responses | 0 |
| Send LM & NTLM - use NTLMv2 session security if negotiated | 1 |
| Send NTLM response only | 2 |
| Send NTLMv2 response only | 3 |
| Send NTLMv2 response only. Refuse LM | 4 |
| Send NTLMv2 response only. Refuse LM & NTLM | 5 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa] ; Options (use only one) ; Send LM & NTLM responses "LmCompatibilityLevel"=dword:00000000 ; Send LM & NTLM - use NTLMv2 session security if negotiated "LmCompatibilityLevel"=dword:00000001 ; Send NTLM response only "LmCompatibilityLevel"=dword:00000002 ; Send NTLMv2 response only "LmCompatibilityLevel"=dword:00000003 ; Send NTLMv2 response only. Refuse LM "LmCompatibilityLevel"=dword:00000004 ; Send NTLMv2 response only. Refuse LM & NTLM "LmCompatibilityLevel"=dword:00000005
CMD
:: Options (use only one) :: Send LM & NTLM responses reg add "HKLM\System\CurrentControlSet\Control\Lsa" /v "LmCompatibilityLevel" /t REG_DWORD /d 0 /f :: Send LM & NTLM - use NTLMv2 session security if negotiated reg add "HKLM\System\CurrentControlSet\Control\Lsa" /v "LmCompatibilityLevel" /t REG_DWORD /d 1 /f :: Send NTLM response only reg add "HKLM\System\CurrentControlSet\Control\Lsa" /v "LmCompatibilityLevel" /t REG_DWORD /d 2 /f :: Send NTLMv2 response only reg add "HKLM\System\CurrentControlSet\Control\Lsa" /v "LmCompatibilityLevel" /t REG_DWORD /d 3 /f :: Send NTLMv2 response only. Refuse LM reg add "HKLM\System\CurrentControlSet\Control\Lsa" /v "LmCompatibilityLevel" /t REG_DWORD /d 4 /f :: Send NTLMv2 response only. Refuse LM & NTLM reg add "HKLM\System\CurrentControlSet\Control\Lsa" /v "LmCompatibilityLevel" /t REG_DWORD /d 5 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Force | Out-Null # Options (use only one) # Send LM & NTLM responses New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Name 'LmCompatibilityLevel' -PropertyType DWord -Value 0 -Force | Out-Null # Send LM & NTLM - use NTLMv2 session security if negotiated New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Name 'LmCompatibilityLevel' -PropertyType DWord -Value 1 -Force | Out-Null # Send NTLM response only New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Name 'LmCompatibilityLevel' -PropertyType DWord -Value 2 -Force | Out-Null # Send NTLMv2 response only New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Name 'LmCompatibilityLevel' -PropertyType DWord -Value 3 -Force | Out-Null # Send NTLMv2 response only. Refuse LM New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Name 'LmCompatibilityLevel' -PropertyType DWord -Value 4 -Force | Out-Null # Send NTLMv2 response only. Refuse LM & NTLM New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa' -Name 'LmCompatibilityLevel' -PropertyType DWord -Value 5 -Force | Out-Null