sodcalculator

10 Tech How-To

Fix PIN Error 0x80090027 (Windows Hello)

Guide 10-54321 · Updated · Step by step

If you see error 0x80090027 when setting up or using a Windows Hello PIN, the fix is usually to clear the Ngc folder in the registry or reset Windows Hello from the Settings app. This error means Windows cannot read or write the encrypted PIN data it stores locally, often after a security update or a corrupted user profile.

What Causes Error 0x80090027

Windows Hello PINs are not stored as plain text — they are protected by the Ngc (Next Generation Credentials) system, which uses the Trusted Platform Module (TPM) chip on your device. The error 0x80090027 is a generic “key not valid” or “key not found” message from the cryptographic layer. It usually appears when:

  • The Ngc folder in the registry contains stale or corrupted data.
  • A Windows update changed the security policies or TPM state.
  • Your user profile is damaged, so Windows cannot access the PIN container.
  • You recently used a registry cleaner or tweaker that removed PIN-related keys.
  • The TPM driver is outdated or the TPM itself is disabled in firmware.

This error can block you from setting up a new PIN, or it can cause the PIN to stop working at the sign-in screen. In most cases, the underlying data is recoverable — you do not need to reinstall Windows.

Before You Start: What You Need

The fixes below require you to be able to log in to Windows, either with a password, a Microsoft account password, or another method. If you are completely locked out, you may need to use the “Reset this PC” option from the recovery environment, but try the registry fix first if you can get to the desktop.

  • Administrator rights — you must be able to approve UAC prompts.
  • A backup of your registry keys (optional but recommended).
  • Your Microsoft account password if you use one, because removing the PIN may require re-authentication.

None of these steps require third-party software. Everything is built into Windows 10 and Windows 11.

Fix 1: Delete the Ngc Registry Key (Most Common Fix)

The Ngc folder is stored under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI. Actually, the correct path is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData — but the PIN container is usually at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Ngc. The most reliable method is to use the built-in ngc cleanup tool, but many users find that deleting the key manually works.

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Ngc.
  3. Right-click the Ngc folder and choose Permissions.
  4. Click Advanced, then change the owner to Administrators (check the box “Replace owner on subcontainers and objects”).
  5. Apply the change, then close the Permissions dialog.
  6. Now right-click Ngc again and choose Delete.
  7. Confirm the deletion, then restart your PC.

After restart, go to Settings > Accounts > Sign-in options and try to set up a new PIN. Windows will create a fresh Ngc container. This is the fix that works for most users because it clears the corrupted data while leaving your Microsoft account intact.

Fix 2: Reset Windows Hello from Settings

If you prefer a GUI method, Windows has a built-in reset for Windows Hello. This is less invasive than the registry edit and is worth trying first.

  1. Open Settings (Win + I).
  2. Go to Accounts > Sign-in options.
  3. Under PIN (Windows Hello), click I forgot my PIN.
  4. Follow the prompts — you will need to verify your Microsoft account password or your local account password.
  5. Set a new PIN when prompted.

If the “I forgot my PIN” link does not appear, you can also try removing the PIN entirely: click Remove under the PIN section, then re-add it. This often fails with the same error, which is why the registry fix is more reliable.

Fix 3: Check TPM and Secure Boot

Because Windows Hello PIN relies on the TPM, a misconfigured TPM can cause error 0x80090027. Check that TPM is enabled and working:

  1. Press Win + R, type tpm.msc, and press Enter.
  2. Look at the status — it should say “The TPM is ready for use.”
  3. If it says “Compatibility Mode” or “Not supported,” you may need to enable TPM in your BIOS/UEFI.
  4. Restart, enter BIOS (usually by pressing Del or F2 during boot), find the TPM or Security section, and set it to Enabled (or “Firmware TPM” on AMD systems).

Also verify that Secure Boot is on — Windows Hello may fail if Secure Boot is disabled. You can check this in System Information (type msinfo32 in Run). If Secure Boot is off, enable it in the same BIOS menu.

Fix 4: Run the DISM and SFC Scans

Corrupted system files can also interfere with the PIN container. Run the built-in system file checker:

  1. Open Command Prompt as administrator (right-click Start, choose “Terminal (Admin)” or “Command Prompt (Admin)”).
  2. Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. Wait for it to finish (may take 10-20 minutes).
  3. Then type sfc /scannow and press Enter. This will verify and repair protected system files.
  4. Restart your PC and try setting up the PIN again.

This is a good step to do after the registry fix if the error persists, because it addresses underlying file corruption that may have caused the issue in the first place.

Frequently Asked Questions

Will deleting the Ngc folder delete my Microsoft account password?

No. The Ngc folder only stores the local PIN data. Your Microsoft account password is stored online and is not affected. You will still be able to sign in with your password after deleting the folder.

Can I fix this without logging into Windows?

If you are completely locked out, you can boot into the recovery environment (hold Shift while clicking Restart on the sign-in screen). From there, choose Troubleshoot > Advanced options > Command Prompt, and run the registry delete command manually. However, this is more advanced and may require you to know the drive letter (usually C:).

Why does this error happen after a Windows update?

Windows updates can change the security policies or the TPM state, which invalidates the existing PIN container. The Ngc folder becomes stale, and Windows cannot read it, resulting in error 0x80090027. Deleting the folder forces Windows to create a fresh container.

Is it safe to delete the Ngc registry key?

Yes, it is safe for your data. The key only contains the encrypted PIN blob and related metadata. Deleting it removes the PIN, but your files, apps, and account remain untouched. You will need to set up a new PIN after deletion.

What if the error still appears after all fixes?

If none of the above work, the issue may be with your user profile. Try creating a new local administrator account and see if the PIN works there. If it does, you can migrate your files to the new account. In rare cases, a Windows in-place repair (using the “Reset this PC” option with “Keep my files”) may be necessary.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →