How to Use BitLocker Command Line to Unlock, Encrypt and Decrypt Drives

The BitLocker command line lets you check encryption status, unlock a protected drive, enable BitLocker, or decrypt a drive using the built-in manage-bde tool. For example, run manage-bde -status to check a drive or manage-bde -unlock D: -RecoveryPassword YOUR-48-DIGIT-KEY to unlock it. This guide explains the essential BitLocker commands for Windows 11 and Windows 10.

When recovery keys are missing or hard to locate, specialized tools like Magic Recovery Key can further assist by automatically finding available BitLocker recovery keys on your system.

Supports Windows 7/8/10/11 and Windows Server

Table of Contents

BitLocker Command Line Commands at a Glance

TaskBitLocker command
Check BitLocker statusmanage-bde -status
Check one drivemanage-bde -status D:
Unlock with a passwordmanage-bde -unlock D: -Password
Unlock with a recovery passwordmanage-bde -unlock D: -RecoveryPassword YOUR-48-DIGIT-KEY
Enable BitLockermanage-bde -on D: -RecoveryPassword
Decrypt a drivemanage-bde -off D:
Pause encryptionmanage-bde -pause D:
Resume encryptionmanage-bde -resume D:

Replace D: with the drive letter you want to manage, and always open Command Prompt as an administrator before running these commands.

What is BitLocker Command Line?

The BitLocker command line, often referred to as the manage – bde commands, is a set of commands that allow users to interact with BitLocker encryption features directly from the Command Prompt or PowerShell. With these commands, you can perform a wide range of operations related to BitLocker, such as encrypting drives, decrypting drives, changing passwords, and managing recovery keys.

How to Unlock BitLocker with Command Line

Open Command Prompt as an administrator and first check the locked drive:

manage-bde -status D:

To unlock the drive with its password, run:

manage-bde -unlock D: -Password

Windows will then prompt you to enter the password securely. If you have the 48-digit BitLocker recovery password, use:

manage-bde -unlock D: -RecoveryPassword YOUR-48-DIGIT-KEY

You can also unlock a drive with a .bek recovery key file:

manage-bde -unlock D: -RecoveryKey "E:\RecoveryKey.bek"

Replace D: with the locked drive and enter the recovery password exactly as saved, including the hyphens. The command line cannot bypass BitLocker encryption; it still requires a valid password, recovery password, recovery key file, or another authorized protector.

How to Encrypt with BitLocker Command Line

1. Open the Command Prompt as Administrator

To use the manage – bde commands effectively, you need administrative privileges. Right – click on the Command Prompt icon and select “Run as administrator.”

2. Select the Drive to Encrypt

Identify the drive letter you want to encrypt. For example, if you want to encrypt your D: drive, you can use the following command:

manage – bde – on D:

This command will start the encryption process on the specified drive. By default, BitLocker will use the standard encryption method. If you want to use a different encryption mode, you can add additional parameters. For instance, to use the XTS – AES 256 – bit encryption mode:

manage – bde – on D: – encryption XTS – AES256

You may also be prompted to set a password for the encrypted drive. This password will be required to access the drive in the future.

How to Decrypt with BitLocker Command Line

1. Open the Command Prompt as Administrator

Just like with encryption, you need administrative rights.

2. Decrypt the Drive

To decrypt a drive, say the D: drive, use the following command:

manage – bde – off D:

If the drive is locked, unlock it with a password or recovery key before running this command. After manage-bde -off D: is accepted, Windows starts decrypting the drive in the background. You can check the progress at any time with manage-bde -status D:. The time it takes to decrypt the drive depends on the size of the drive and the amount of data stored on it.

manage – bde – on D: – encryption XTS – AES256

How to Find a Missing BitLocker Recovery Key

Magic Recovery Key does not bypass BitLocker encryption. It scans the current computer and connected drives for available BitLocker recovery keys that may have been stored previously.

1. Download and install Magic Recovery Key from a trusted source.

Supports Windows 7/8/10/11 and Windows Server

2. Open the software and select BitLocker Recovery Key in the left menu.

steps-to-use-magic-recovery-key

3. Click Search to let the software scan for the BitLocker key.

4. Once the key is found, copy it and use it to unlock your encrypted drive.

steps-to-use-magic-recovery-key

Conclusion

The BitLocker command line provides a powerful and flexible way to manage BitLocker-encrypted drives through tools like manage-bde, allowing you to unlock drives, view encryption status, and handle recovery scenarios efficiently. For users who are comfortable working in Command Prompt or PowerShell, this approach offers greater control and automation than the standard graphical interface.

However, if you have lost your BitLocker password or recovery key, command-line methods alone may not be sufficient. In such situations, Magic Recovery Key becomes an essential companion tool. It can automatically scan your computer, external storage devices, and system records to locate available BitLocker recovery keys, making it much easier to regain access to locked drives. To save time and avoid permanent data loss, we recommend downloading Magic Recovery Key and keeping it ready whenever you work with BitLocker-protected drives using the BitLocker command line.

Supports Windows 7/8/10/11 and Windows Server

FAQs

How do I unlock BitLocker with the command line?

You can unlock BitLocker from an elevated Command Prompt by running manage-bde -unlock D: -Password. If you have the 48-digit recovery password, run manage-bde -unlock D: -RecoveryPassword YOUR-48-DIGIT-KEY. Replace D: with the letter of the locked drive.

What can I do if I forgot my BitLocker password?

If you forgot the password, you can still unlock the drive using the BitLocker recovery key. If the recovery key is missing, tools like Magic Recovery Key can help you scan and retrieve it.

Do I need administrator rights to use BitLocker command line tools?

Yes. Open Command Prompt as an administrator and run manage-bde -status to check every drive, or manage-bde -status D: to check a specific drive. The results show its conversion status, encryption percentage, encryption method, protection status and lock status.

Can I check BitLocker status using the command line?

Yes. You can view the encryption status of all drives by running:manage-bde -statusThis command displays encryption progress, protection status, and encryption method.

Can I enable or disable BitLocker with the command line?

Yes. The BitLocker command line allows you to turn BitLocker on or off using manage-bde -on or manage-bde -off, depending on your needs.

Is it possible to back up a BitLocker recovery key using the command line?

Yes. You can export a recovery key to a specific location using commands that add or manage recovery protectors, helping you keep a secure backup.

Can I use PowerShell instead of Command Prompt for BitLocker operations?

Absolutely. PowerShell supports BitLocker cmdlets such as Unlock-BitLocker, which provide similar functionality with scripting support.

What should I do if BitLocker cannot be unlocked due to missing or damaged metadata?

If a drive cannot be unlocked even with a valid recovery key, stop writing data to it and check the drive for hardware or BitLocker metadata problems. repair-bde may help recover data from a damaged BitLocker volume, but it requires a valid recovery password or recovery key and a separate output drive.

Erin Smith is recognized as one of the most professional writers at Amagicsoft. She has continually honed her writing skills over the past 10 years and helped millions of readers solve their tech problems.