The “Local Security Authority database contains an internal inconsistency” error is a Windows security check failure that typically appears when you open the Local Security Policy editor (secpol.msc), the Group Policy editor, or during user account permission checks. The fix is to restore the security database from a known-good state, usually by running the System File Checker and DISM tools, or by resetting the security policy to its default configuration.
What the Error Means
Windows stores security settings—like password policies, user rights assignments, and audit policies—in a database managed by the Local Security Authority (LSA). When you see “contains an internal inconsistency,” the LSA has detected that entries in this database conflict with each other or with the system’s expected state. This can happen after a failed update, a third-party security tool modifies permissions, or a registry edit goes wrong. The error itself is a safeguard: Windows refuses to apply a policy it cannot trust, which prevents half-applied security settings that could lock you out of your own system.
Why the Database Gets Corrupted
The security database is not a single file but a collection of registry keys and policy files under %SystemRoot%\System32\GroupPolicy and the Security hive in the registry. Corruption usually stems from one of these:
- An interrupted Windows update that replaced policy files mid-write
- Security software (antivirus, endpoint protection) modifying permissions on policy files
- Manual registry edits to
SECURITYorPOLICIESkeys without proper backup - Disk errors that silently corrupt file contents
- Restoring a system image from a different hardware configuration
In many cases, the inconsistency is minor—one policy value reads as both “enabled” and “disabled” because a cached copy differs from the active one. Windows detects this during a security check and blocks the policy from applying.
How to Fix It (Step by Step)
Work through these steps in order. Stop when the error no longer appears.
- Run System File Checker. Open Command Prompt as administrator and type
sfc /scannow. This verifies protected system files, including some policy components, and replaces corrupted ones from the Windows cache. - Run DISM. In the same Command Prompt, type
DISM /Online /Cleanup-Image /RestoreHealth. This repairs the Windows image itself, which SFC relies on. Reboot and test. - Reset Group Policy to defaults. If the error persists, open an elevated Command Prompt and run
rd /s /q "%SystemRoot%\System32\GroupPolicy"thengpupdate /force. This deletes local policy files and rebuilds them from the system defaults. Your custom security settings will be lost, so back up any policies you need. - Check for third-party security software. Temporarily disable any antivirus or endpoint protection that hooks into Windows security APIs, then try opening secpol.msc again. If it works, re-enable the software and add an exception for the policy files.
- Restore the SECURITY registry hive. As a last resort, you can restore the
SECURITYhive from a backup (e.g., from a system restore point). This is advanced—do it only if you have a known-good backup, because a wrong restore can make Windows unbootable.
What the Error Looks Like in Practice
You might see the message when you open secpol.msc and try to view “Security Settings” or “Local Policies.” The window may open but show a red X or a dialog box with the exact phrase. In some cases, the error appears when you try to change a user’s password or when you run gpupdate /force and it fails with “The Local Security Authority database contains an internal inconsistency.” The error code is often 0x80070422 or similar, but the text is the key identifier.
Why You Should Not Ignore It
Ignoring the error means your security policies are not being applied as configured. For example, if your password policy says “minimum 12 characters” but the database is inconsistent, Windows might fall back to a weaker default, or it might reject valid password changes. On a corporate machine, this could cause a domain controller to reject your machine’s security channel. On a personal PC, it can prevent you from changing user rights, which might block you from installing certain software or running administrative tools. Fixing it promptly avoids a situation where a security setting silently fails to apply—something that could leave your system less protected than you think.
Common Misconceptions
One widespread myth is that the error means your system is hacked or that the LSA database is a hacker’s tool. In reality, the LSA database is a core Windows component, and the error is a corruption check, not a sign of intrusion. Another misconception is that you need to reinstall Windows. That is rarely necessary—the steps above resolve the vast majority of cases. Also, some users think the error only appears on Windows Server, but it occurs on Windows 10 and 11 Professional and Enterprise editions just as often, because those editions include secpol.msc.
Frequently Asked Questions
Will this error affect my ability to log in?
Usually not. The error typically appears when you open the security policy editor or when you run a policy update, not during normal login. However, if the corruption is severe enough to affect the SAM registry hive (which stores local user passwords), you could see login issues. In that case, boot into Safe Mode and try the steps from there.
Can I just delete the SECURITY registry key to fix it?
No. Deleting the entire SECURITY hive will make Windows unbootable because it contains essential system security data. Only restore it from a known-good backup, and only if you are confident in the backup’s integrity.
Why does the error appear after a Windows update?
Windows updates sometimes replace policy files or security descriptors. If the update is interrupted or if a third-party tool has changed permissions on those files, the new files may not match the existing database, causing the inconsistency. Running DISM and then SFC usually resolves this.
Do I need to be an administrator to fix this?
Yes. All the commands and steps require administrator privileges. If you are on a work computer, contact your IT department—they may have a standard fix or a policy that prevents you from modifying security settings.
Is there a way to prevent this from happening again?
Regularly run sfc /scannow after major updates, avoid manually editing security registry keys, and ensure your disk has no errors by running chkdsk /f periodically. Also, keep a system restore point before making any policy changes.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Server Repair Fails: Fix Restart Loops
- Plane Crazy Summer Event Schedule & Dates3 tier
- How to Choose a Secure IMAP Email Client
- Tower Defense RNG Codes: Active List & How to Redeem
- RCS Chats On or Off in Google Messages
- How to Choose a Phone That Supports VoLTE on Your Carrier