Encrypting a Windows system drive with BitLocker provides effective protection against unauthorized access, especially when paired with TPM. A hardware upgrade, firmware update or even a change in the computer’s UEFI BIOS may effectively lock you out, making your data inaccessible and the Windows system unbootable. How to prevent being locked out and how to restore access to the data if you are prompted to unlock the drive? Read along to find out.
If you are seeing the following screen, you have been locked out of your system because of BitLocker encryption.
The lock-out often occurs if the computer is equipped with TPM, and one of the following things had occurred:
If you are locked out of your Windows system and are prompted for a BitLocker recovery key, this can mean that the recovery key might be the only option to unlock the disk. If this is the case, read the prompt carefully. In modern versions of Windows 10 (and all versions of Windows 11), such prompts usually have a hint as to when the backup copy of the BitLocker key was produced and where it was stored.
In some cases, there may be other ways to unlock the disk such as a PIN code or password. You can check if this is the case by booting your computer with Elcomsoft System Recovery and examining the BitLocker-protected drive. We have comprehensive instructions here: Unlocking BitLocker: Can You Break That Password? | ElcomSoft blog
If no password is available, Elcomsoft System Recovery will display the following screen:
If this is what you see, a BitLocker recovery key is the only way to unlock the encrypted disk.
In certain cases, your computer’s boot drive might be encrypted with BitLocker Device Encryption without you even knowing. According to Microsoft, modern Windows devices are increasingly protected with BitLocker Device Encryption out of the box. In Overview of BitLocker Device Encryption in Windows – Windows security, Microsoft explains how BitLocker Device Encryption works.
Beginning in Windows 8.1, Windows automatically enables BitLocker Device Encryption on devices that support Modern Standby. With Windows 11 and Windows 10, Microsoft offers BitLocker Device Encryption support on a much broader range of devices, including those that are Modern Standby, and devices that run Windows 10 Home edition or Windows 11.
Unlike a standard BitLocker implementation, BitLocker Device Encryption is enabled automatically so that the device is always protected. The following list outlines how this happens:
In plain English, the important consequences are:
All this means that if you are locked-out of your BitLocker-encrypted system, there always is a backup copy of the recovery key. Finding that recovery key is often the only way to regain access to the encrypted system.
If you have a working Windows system, and your system drive is protected with BitLocker or BitLocker Device Encryption, you can easily prevent the lock-out by saving your BitLocker recovery key. That Recovery Key can then be used to unlock the encrypted disk regardless of the type of protector used.
Ensuring that you have a BitLocker recovery key available and accessible is crucial to safeguard your BitLocker-encrypted disk. A unique recovery key is produced for every encrypted volume, so make sure to familiarize yourself with the recovery process.
There are generally two ways to save the recovery key, one is using the Windows GUI, and another using the command-line interface.
To produce the recovery key, launch the “BitLocker Drive Encryption” applet in the Windows Control Panel. You can do this by either going through the Control Panel, or by typing “bitlocker” in the Windows search and launching “Manage BitLocker”.
If your system disk is encrypted, you will have several options: Suspend protection, Backup your recovery key, or Turn off BitLocker. To save a BitLocker recovery key, click “Backup your recovery key”. Note: these activities require that your Windows account has administrative privileges.
You will have the opportunity to save the recovery key into your Microsoft account (if you used one for Windows sign-in), save it to a file (preferably onto a USB flash drive, but a folder on an unencrypted disk will do as well), or print it out on a piece of paper.
Note: since Windows 10, version 1903 (or any version of Windows 11) the system will save information about when and where the BitLocker recovery key was backed up. You won’t be able to see that information anywhere but toe BitLocker recovery screen.
Alternatively, you can produce the recovery key by using the command line. Launch the command line with administrative privileges with “Run as administrator”, then type the following command:
manage-bde -protectors -get C:
You will receive the following output:
C:\WINDOWS\system32>manage-bde -protectors -get C: BitLocker Drive Encryption: Configuration Tool version 10.0.19041 Copyright (C) 2013 Microsoft Corporation. All rights reserved. Volume C: [NVME] All Key Protectors TPM: ID: {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} PCR Validation Profile: 0, 2, 4, 11 Numerical Password: ID: {YYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY} Password: 123456-123456-123456-123456
Here, the “Numerical Password” field will contain the required recovery key. You can save it into a file or print it out. Make sure to record the corresponding key ID.
Windows has a powerful replacement of the classic command line. We created a PowerShell script that extracts all BitLocker recovery keys for all encrypted disks.
Save the script below as a .ps1 file (for example, “backup-bitlocker.ps1”) by creating a text file and pasting the following content:
# Export the BitLocker recovery keys for all drives and display them at the Command Prompt. $BitlockerVolumers = Get-BitLockerVolume $BitlockerVolumers | ForEach-Object { $MountPoint = $_.MountPoint $RecoveryKey = [string]($_.KeyProtector).RecoveryPassword if ($RecoveryKey.Length -gt 5) { Write-Output ("The drive $MountPoint has a BitLocker recovery key $RecoveryKey") } }
Launch the script on the computer with BitLocker drives mounted from a Windows account with administrative privileges. Run PowerShell with “Run as administrator”, then type the name of your script file (e.g. “backup-bitlocker.ps1”). You will see all BitLocker recovery keys as the output.
When updating the computer’s UEFI BIOS, removing or installing hardware (such as a video card), or modifying UEFI security settings, your BitLocker-encrypted drive may no longer mount when you attempt to boot Windows. This happens because your computer’s chain of trust is broken (we have a comprehensive article on how it works), and the computer’s TPM module does not release the encryption key.
If you followed the steps from the previous chapter, you already have the BitLocker recovery key, and mounting the encrypted BitLocker drive will be as simple as keying in that recovery key into BitLocker recovery screen. You can identify the required key by its Recovery key ID.
However, this situation can be easily avoided altogether if you simply suspend BitLocker protection temporarily before updating BIOS or altering computer hardware. To suspend BitLocker protection, open the BitLocker applet in the Windows Control Panel and click “Suspend protection”.
Once you do that, the decrypted volume key is stored in the disk header, allowing the system to pick it up the next time it boots. After suspending BitLocker protection, shut down the computer and perform the planned upgrade or update. When you turn it on, Windows will boot normally, establish a new chain of trust and provision the TPM accordingly. After that, Windows will automatically re-enable BitLocker protection.
If you own the computer that has its system drive encrypted with BitLocker Device Encryption and manage to break the system’s boot chain of trust, you will be unable to boot. If this happens, you will see a screen that looks like the one below:
On that screen, Windows is asking you to unlock the drive by providing a valid BitLocker recovery key that corresponds to the displayed Recovery key ID. If you’ve come to that point, there might be no other way to unlock the system but enter the valid recovery key. Your Windows account password or any other password cannot be used to unlock the system drive because the actual binary encryption key is or was stored in the computer’s TPM module. If the TPM module does not want to provide that encryption key, or if the TPM module was reset or re-initialized, you no longer have access to that key. The BitLocker recovery key contains the encoded encryption key that can be used to decrypt and unlock the protected drive.
Important: if the computer was equipped with TPM, there may be no other way to unlock the disk except the BitLocker recovery key.
In Windows 10 and Windows 11 one cannot enable BitLocker encryption without saving a copy of the recovery key. In the case of automatic BitLocker Device Encryption, the recovery key is automatically saved into the cloud account of the first user who signs in as a system administrator with their Microsoft Account (as opposed to a local Windows account).
Important: BitLocker Device Encryption will not be enabled until the first eligible sign-in. It will not be enabled until the BitLocker recovery key is saved into that user’s Microsoft Account.
So where do you get the BitLocker recovery key? If you are using a recent version of Windows 10 or any version of Windows 11, you will get a hint as to the location of the recovery key. According to Microsoft, “BitLocker metadata has been enhanced in Windows 10, version 1903 or Windows 11 to include information about when and where the BitLocker recovery key was backed up. This information is not exposed through the UI or any public API. It is used solely by the BitLocker recovery screen in the form of hints to help a user locate a volume’s recovery key. Hints are displayed on the recovery screen and refer to the location where the key has been saved. Hints are displayed on both the modern (blue) and legacy (black) recovery screen. This applies to both the boot manager recovery screen and the WinRE unlock screen.” BitLocker recovery guide (Windows 10) – Windows security | Microsoft Docs
According to Microsoft, this is where you can find the recovery key:
In your Microsoft account: Sign in to your Microsoft account on another device to find your recovery key. If other users have accounts on the device you can ask them to sign in to their Microsoft account to see if they have the key.
On a printout you saved: Your recovery key may be on a printout that was saved when BitLocker was activated. Look where you keep important papers related to your computer.
On a USB flash drive: Plug the USB flash drive into your locked PC and follow the instructions. If you saved the key as a text file on the flash drive, use a different computer to read the text file.
In an Azure Active Directory account: If your device was ever signed in to an organization using a work or school email account, your recovery key may be stored in that organization’s Azure AD account associated with your device. You may be able to access it directly or you may need to contact a system administrator to access your recovery key.
Held by your system administrator: If your device is connected to a domain (usually a work or school device), ask a system administrator for your recovery key.
Read more about BitLocker protection and BitLocker recovery in our blog:
Unlocking BitLocker Volumes by Booting from a USB Drive
Unlocking BitLocker: Can You Break That Password?
Understanding BitLocker TPM Protection
Build high-performance clusters for breaking passwords faster. Elcomsoft Distributed Password Recovery offers zero-overhead scalability and supports GPU acceleration for faster recovery. Serving forensic experts and government agencies, data recovery services and corporations, Elcomsoft Distributed Password Recovery is here to break the most complex passwords and strong encryption keys within realistic timeframes.
Elcomsoft Distributed Password Recovery official web page & downloads »
Elcomsoft Forensic Disk Decryptor offers forensic specialists an easy way to obtain complete real-time access to information stored in popular crypto containers. Supporting desktop and portable versions of BitLocker, FileVault 2, PGP Disk, TrueCrypt and VeraCrypt protection, the tool can decrypt all files and folders stored in crypto containers or mount encrypted volumes as new drive letters for instant, real-time access.
Elcomsoft Forensic Disk Decryptor official web page & downloads »
Reset passwords to local Windows accounts and Microsoft Account and perform a wide range of administrative tasks. Assign administrative privileges to any user account, reset expired passwords or export password hashes for offline recovery, and create forensic disk images. Elcomsoft System Recovery is ready to boot thanks to the licensed Windows PE environment, allowing administrators to access locked computers.