LmCompatibilityLevel: LAN Manager authentication levels explained

Server racks on a network where LmCompatibilityLevel decides which NTLM responses Windows sends and accepts

Quick answer: LmCompatibilityLevel is a Registry value under HKLM\SYSTEM\CurrentControlSet\Control\Lsa that sets which LAN Manager and NTLM responses Windows sends and accepts. It runs from 0 (least secure) to 5 (most secure). When it isn’t set, current Windows versions behave like level 3, sending NTLMv2 only. Level 5 is the recommended setting, and you change it with the Group Policy Network security: LAN Manager authentication level or directly in the Registry.

Applies to: Windows 11, Windows 10 and Windows Server.

Server racks on a network where LmCompatibilityLevel decides which NTLM responses Windows sends and accepts

What LmCompatibilityLevel does

When you open a shared folder, map a drive or sign in to a server that doesn’t use Kerberos, Windows can fall back to the older challenge-response protocols: LM, NTLM (also called NTLMv1) and NTLMv2. LM and NTLMv1 are weak and their responses can be cracked, so modern networks should use only NTLMv2, or Kerberos where possible.

LmCompatibilityLevel controls two things: which response types this PC sends when it connects to something, and, on domain controllers, which response types they accept.

The six levels

ValuePolicy optionWhat it means
0Send LM & NTLM responsesSends the weakest responses. Never use this today.
1Send LM & NTLM – use NTLMv2 session security if negotiatedStill sends LM and NTLM.
2Send NTLM response onlyStops LM, still sends NTLMv1.
3Send NTLMv2 response onlySends NTLMv2 only. This is how Windows behaves when the value isn’t set.
4Send NTLMv2 response only. Refuse LMLike 3, and domain controllers refuse LM.
5Send NTLMv2 response only. Refuse LM & NTLMLike 3, and domain controllers refuse both LM and NTLMv1. Recommended.

Levels 4 and 5 only change what’s accepted on domain controllers. On a home PC that isn’t a domain controller, 3, 4 and 5 all make the PC send NTLMv2 only.

Check your current level

Open Command Prompt and run:

reg query HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v LmCompatibilityLevel

If you see ERROR: The system was unable to find the specified registry key or value, the value isn’t set and Windows uses its default (level 3). Otherwise the number at the end of the line, such as 0x5, is the level.

Change it with Group Policy

Networking equipment with Ethernet cables, where the LAN Manager authentication level policy affects shared folder sign-in

On Windows 11 or 10 Pro, Enterprise or Education:

  1. Press Windows + R, type secpol.msc and press Enter. (You can also use gpedit.msc and go to Computer Configuration > Windows Settings > Security Settings.)
  2. Go to Local Policies > Security Options.
  3. Double-click Network security: LAN Manager authentication level.
  4. Choose Send NTLMv2 response only. Refuse LM & NTLM and select OK.

In a domain, set it in a Group Policy Object instead, so every PC gets the same level. Our Group Policy Management Console guide shows how to install and use the console.

Change it in the Registry

On Windows Home, or for a quick change, open Command Prompt as administrator and run (use the level you want in place of 5):

reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v LmCompatibilityLevel /t REG_DWORD /d 5 /f

Restart the PC so every service picks it up. If a domain Group Policy also sets this option, the policy wins and overwrites your Registry change at the next refresh.

Old NAS or printer can’t connect

A common reason people search for this value is an old NAS, scanner-to-folder printer or Samba server that suddenly stops accepting connections, often with The specified network password is not correct or Windows cannot access. Older guides tell you to lower the level to 1 or 2. Try these first instead:

  • Update the device’s firmware, or in its settings turn on NTLMv2 (sometimes labelled NTLMv2 only or SMB2/SMB3).
  • Check that you’re using the right user name format, such as NAS-NAME\username.
  • Work through the network checks in our 0x80070035 guide and map a network drive guide.

Lowering the level is a last resort. It weakens every connection the PC makes, and it may not help at all on new versions: Microsoft says NTLMv1 has been removed from Windows 11 version 24H2 and Windows Server 2025. If a device only supports LM or NTLMv1, the lasting fix is to update or replace it.

Network switch connecting PCs to a NAS that needs NTLMv2 support to accept Windows connections

Official sources: for more detail, see these pages:

Frequently asked questions

What is the default LmCompatibilityLevel?

The value usually isn’t present at all. In that case Windows 10, Windows 11 and current Windows Server versions behave as level 3, sending NTLMv2 responses only.

Is level 5 safe to set at home?

Yes for almost everyone. Modern NAS boxes, routers and Windows PCs all support NTLMv2. Only very old devices that know nothing newer than LM or NTLMv1 stop working.

Do I need to restart after changing it?

Restarting is the safest way to make sure all services use the new level.

Does this affect Microsoft account or PIN sign-in?

No. It only affects NTLM network authentication, such as connecting to shared folders and some servers, not signing in to your own PC.

How we write our guides: read our editorial policy.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *