Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

BitLocker at startup: "Too many PIN entry attempts" after entering the PIN

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A computer that protects its drive with BitLocker and a startup PIN stops at the PIN screen and answers with this message:

Too many PIN entry attempts

Microsoft's page title for it is "Error after you enter a BitLocker PIN at Windows startup: Too many PIN entry attempts". The page describes the case of a new computer running an OEM version of Windows. Microsoft's other BitLocker pages show that repeated wrong PINs on any machine run into the same TPM protection, so the sections below keep the two situations apart.

Everything before the Fix section only reads information. The Fix section lists Microsoft's workarounds in order of how much each one changes, and gives commands only where a command is safe to describe.

What the error means

The BitLocker PIN is not checked by BitLocker alone. In a TPM-and-PIN setup the PIN is an authorisation value that the Trusted Platform Module (TPM) checks. Microsoft's BitLocker countermeasures page says TPMs "also have anti-hammering protection that is designed to prevent brute force attacks that attempt to determine the PIN". When the count of failed tries reaches the limit, the TPM stops answering for a time. Our reading: that is what the startup screen reports with the message above; the Too many PIN entry attempts page itself attributes the message only to the maker not resetting the count.

Microsoft's TPM lockout page explains the mechanism: "The TPM locks itself to prevent tampering or malicious attacks." It adds that while the TPM is in lockout mode "it generally returns an error message when it receives commands that require an authorization value", and that a common example is BitLocker with the TPM plus PIN key protector.

For TPM 2.0 the same page gives the values Windows configures: a maximum count of 32 and a healing time of 10 minutes, so that "every continuous 10 minutes of powered on operation without an event causes the counter to decrease by 1". Those numbers are Microsoft's description of TPM 2.0 as Windows configures it. The Too many PIN entry attempts page gives no waiting time of its own: it only says to wait until the unlock period expires.

Likely causes

Cause What you see Source
The PC maker did not reset the lockout count before shipping A new computer reports the error on the first PIN entry Microsoft's page: "This issue occurs because the OEM doesn't reset the lockout count before shipping the device."
Wrong PIN entered too many times A used computer locks after repeated mistakes BitLocker recovery overview lists "Entering the wrong PIN too many times" as an event that causes recovery
TPM lockout from other failed authorisation attempts Slow or refused TPM responses TPM lockout page

Microsoft's pages give no counts, so the rows are not ranked. The first row is the only one the Too many PIN entry attempts page addresses. The second and third come from the BitLocker pages and show that the message has a general mechanism behind it.

Prove the cause before changing anything

At the startup screen nothing can be run, so the proof comes from what you know about the device and from where the recovery information is stored.

  1. Is the computer new, or was it handed over with a PIN set by the maker or by deployment? That fits the cause on Microsoft's page.
  2. Has anyone entered several wrong PINs? Ask the user. That fits the lockout mechanism on the TPM page.
  3. Find out whether a recovery password exists before you need it. Microsoft's recovery overview says the recovery password is a 48-digit number and "might be saved as a text file, printed or stored in Microsoft Entra ID or Active Directory". The page says that, depending on policy settings, the password can be saved in Microsoft Entra ID for Microsoft Entra joined devices and in AD DS for devices joined to Active Directory. A device not joined to either, using a Microsoft account, can store the key in that account, which the page names as the default recommended storage for such devices.
  4. Once Windows is running again, read the TPM state. Microsoft's Get-Tpm page describes the output fields LockedOut ("Whether a TPM is locked out"), LockoutHealTime ("The time that has to pass until you can unlock the TPM"), LockoutCount ("Number of failed attempts") and LockoutMax ("Limit of failed attempts"). In an elevated PowerShell window run:
Get-Tpm

This command only reads the TPM state. Its example output on Microsoft's page shows LockoutHealTime : 10 minutes, LockoutCount : 0 and LockoutMax : 31, which are the example's values, not a promise about your device.

  1. The drive's protection can be read too, once Windows is running, with manage-bde -status C:, which the page for that command says provides information including the conversion status, encryption method and protection status of the drive. It does not change anything.

Example (illustrative): a small accounting practice in Newcastle receives five laptops from its supplier with BitLocker and a startup PIN already set. The first PIN entry on one laptop returns the message at once. Nobody has had the laptop before. That matches the cause on the page: a lockout count the maker did not reset. A laptop that locked after a user mistyped the PIN repeatedly matches the general mechanism instead.

Fix

Microsoft says to "try the following methods, in no particular order". Here they are by how much each one changes, so the reader can pick the safest that works.

Wait until the unlock period expires, then enter the correct PIN

This changes nothing on the device. Leave the computer powered at the PIN screen or restart it, and enter the correct PIN after the period. Microsoft's page does not state the length of the period. For TPM 2.0 as Windows configures it, the TPM lockout page's figure of one count removed per 10 minutes of powered-on operation is the closest published number, and the wait depends on how many counts are used.

Enter the BitLocker recovery key

Risk: the next step uses the 48-digit recovery password, which Microsoft's recovery overview says gives the holder access to all the data on the drive. Take it from the place the organisation stores it, give it only to the person entitled to the data, and do not paste it into chat or email.

At the BitLocker screen, enter the recovery key when it asks for it. This is the first workaround on Microsoft's list. Microsoft's page does not say whether the lockout count is cleared by a successful recovery, so test the PIN once Windows is up and do not assume it works.

To undo it: entering a recovery key changes no setting, so there is nothing to revert. The password stays valid for the drive; handle it as exposed if it was seen by anyone who should not have it, and follow your organisation's process for replacing it.

Use the recovery command prompt

Risk: the next step, a manage-bde -unlock command typed with a recovery password, unlocks the system drive using the password that opens all its data. Type the password exactly, with its dashes, from the place that stores it.

Microsoft's page describes this route: at the BitLocker entry screen press ESC to access other recovery options, select the command prompt option, and run manage-bde to unlock the system drive or turn off BitLocker. The unlock forms on the page use -unlock <DriveLetter>: -recoverypassword <Password> or -recoverykey <RecoveryKey>, and the manage-bde unlock page describes the command as unlocking "a BitLocker-protected drive by using a recovery password or a recovery key".

Run the manage-bde -unlock form that matches what you hold (password or key file), using the exact syntax on the manage-bde unlock page.

To undo it: the unlock changes no key protector and no setting listed on Microsoft's pages, so there is nothing to revert. No Microsoft page on this subject gives a command to lock the drive again.

The page's other command, manage-bde -off, is not given here. The manage-bde off page says it "Decrypts the drive and turns off BitLocker" and that "All key protectors are removed when decryption is complete". It cannot be reversed by a command on Microsoft's pages, and turning BitLocker back on is a separate planned job. Do not use it to get past a PIN error on a device that holds company data.

Reinstall the operating system and reset the TPM

Disruptive step: a reinstall replaces what is on the drive, and no Microsoft page on this subject gives an undo for it or for resetting the TPM chip. Use this route only on a new computer with nothing on it.

Microsoft lists "Reinstall the operating system, and then reset the TPM chip" as a workaround. Microsoft gives no steps for this on the page. Our own general advice: a reinstall replaces what is on the drive, so keep it for a new computer with no data on it. The page points to "Reset the TPM Lockout" for resetting the chip. Microsoft's Manage TPM lockout page says resetting the lockout needs the TPM owner's authorisation, a value that "is no longer retained by default starting with Windows 10 version 1607 and higher". So the reset described there is not available on devices where Windows did not keep that value.

Contact the OEM

Microsoft's last workaround is "Contact the OEM for support." For a new computer whose maker did not reset the count, this is the supplier relationship that applies; give them the model, serial number and the exact message.

Confirm the fix

  • The PIN screen accepts the correct PIN and Windows starts.
  • Get-Tpm shows LockedOut as False and LockoutCount back near zero.
  • The device's drive status, from manage-bde -status C:, still shows protection on. A recovery-key unlock is not a reason to leave protection off.
  • The device restarts and accepts the PIN a second time, so you know the fix held.

What to watch afterwards

  • New devices from the same supplier or image. Microsoft's cause is a maker that did not reset the lockout count, so, as our own advice, test a PIN entry once on each new device before handing it over.
  • PINs that users do not remember. Microsoft's countermeasures page says users who forget their PIN are denied access until they contact support for a recovery key, so check the key is stored for every device before the PIN is issued.
  • Recovery key storage. The recovery overview says the recovery password can be saved in Microsoft Entra ID for Microsoft Entra joined devices and in AD DS for devices joined to Active Directory, depending on policy settings. Check that each device's key is saved where your policy sends it.

Risks and limits

These steps have not been run or lab-tested.

The Too many PIN entry attempts page lists its methods "in no particular order", gives no waiting time, and does not say whether a recovery-key startup clears the lockout. Its figures for lockout (32 attempts, 10 minutes) come from a different Microsoft page that describes TPM 2.0 as Windows configures it, and TPM 1.2 behaves differently: that page says a TPM 1.2 chip takes exponentially longer to respond after incorrect values. The page's "reset the TPM chip" route depends on the TPM owner password, which Windows does not keep by default from Windows 10 version 1607. Turning off BitLocker, reinstalling Windows and clearing the TPM each remove protection or data; none is a first step.

Sources