0X8028001D

TPM_E_AUTH2FAIL (0X8028001D): Second Key Auth Failed — Fix

TPM error 0X8028001D means the second key's authorization failed. Usually a PIN or policy mismatch. Clear TPM or reset credentials. Here's how.

Yeah, that 0X8028001D error is a pain. It usually pops up right when you're trying to sign in or unlock BitLocker, and it doesn't tell you anything useful. Let's get it sorted.

The Quick Fix

The most reliable fix is to clear the TPM and let Windows reinitialize it. But before you do that, try the lighter version — resetting your PIN or password. If you're using Windows Hello, go to Settings > Accounts > Sign-in options, click PIN (Windows Hello), then I forgot my PIN. You'll need your Microsoft account password or your local account password. That alone fixes a huge chunk of these errors because the TPM stores a hash of your PIN, not the PIN itself, and if that hash gets corrupted or mismatched, you get exactly this fault.

If that doesn't work, then you clear the TPM. Open PowerShell as administrator and run:

Clear-Tpm

Reboot. Windows will re-provision the TPM automatically, and you'll need to reconfigure Windows Hello and possibly BitLocker recovery keys. BitLocker will stay enabled but will request the recovery key on next boot — have that 48-digit key handy (it's in your Microsoft account or your domain admin).

Another route: tpm.msc from the Run dialog. In the TPM Management console, click Clear TPM on the right. Same result, but it warns you more aggressively.

Why This Works

Here's what's actually happening. The TPM uses two keys for certain operations — a primary key and a secondary key. The first key authenticates your identity, the second key wraps the actual encryption key. When the TPM says authorization for the second key failed, it means the HMAC or policy that should match the second key doesn't match what the TPM has stored.

Clearing the TPM wipes all those stored keys, including the corrupted or mismatched one. The TPM starts fresh, so the next time you set a PIN or use a certificate, Windows stores a new, consistent set of keys. The reason step 3 works is that you're effectively resetting the entire key hierarchy, not just patching one value.

But be careful — clearing the TPM invalidates anything that depends on those keys. That includes BitLocker (you'll need the recovery key), virtual smart cards, and some enterprise sign-in methods. Back up what you need first.

Less Common Variations

1. BitLocker with a Startup PIN

If you use BitLocker with a PIN plus TPM, you sometimes see 0X8028001D right after you enter the PIN on boot. The TPM verifies the PIN against the stored PCRs, and if the PCR values changed (like after a BIOS update), the TPM rejects it. The fix here is to suspend BitLocker protection temporarily, boot once, then resume. In an admin PowerShell:

Suspend-BitLocker -MountPoint "C:" -RebootCount 1

Reboot, then run Resume-BitLocker -MountPoint "C:". This rehashes the PCRs with the current firmware state.

2. Virtual Machine TPM

Running a Windows VM with a virtual TPM (like on Hyper-V or VMware) can throw this error after you clone or move the VM. The virtual TPM's keys don't travel well. You might not be able to clear it from inside the guest. Instead, shut down the VM and remove the TPM device from the VM settings, then add a new one. That's the only reliable way.

3. Group Policy Interference

On domain-joined machines, a Group Policy that enforces a specific TPM authorization policy can conflict with the local PIN settings. Check gpedit.msc under Computer Configuration > Administrative Templates > Windows Components > BitLocker Drive Encryption > Operating System Drives — look for “Require additional authentication at startup”. If it's set to Require TPM only, that's fine, but if it mandates a PIN, make sure the PIN policy matches what you've set. Mismatches cause exactly this error.

Prevention

Don't clear the TPM more than once a year — it's a legit tool, but it's a blunt instrument. Instead, keep your firmware updated. Most TPM auth failures trace back to a firmware update that changed the PCR values. Update your BIOS/UEFI through the manufacturer's tool, not a random download site, and after the update, reboot and try your normal sign-in. If the error appears, use the BitLocker suspend/resume trick above.

Also, don't use the same PIN for your Windows account and your BitLocker PIN. If one gets into the wrong hands, the attacker has both. And set up a recovery key backup — the 48-digit key — before you need it. Store it in a password manager or a printout in a drawer. You'll thank yourself later.

Finally, if you're a developer testing TPM calls, never hardcode the second key authorization value. Use the TPM's policy session with proper salted parameters each time. The error often comes from reusing a stale auth blob. Generate fresh ones per session.

Related Errors in Windows Errors
0X00000582 Fix ERROR_CLASS_ALREADY_EXISTS (0x582) in Windows 0X000036BA SXS Thread Queries Disabled (0x000036BA) – Fix in Minutes 0X00000A4A Fixing NERR_RplConfigNotEmpty (0X00000A4A) on Windows Server 0X8004E006 CONTEXT_E_SYNCH_TIMEOUT (0x8004E006) – Quick Fix That Works

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.