×
×
×
×

How to Create a Master BitLocker Recovery Key for All Endpoints

This page explains how to use a Data Recovery Agent (DRA) certificate to create a single master BitLocker recovery key that works across all managed endpoints in Endpoint Central — covering certificate generation, deployment of the public key to endpoints, key security considerations, private key export, OS drive recovery, and DRA protector deletion.

Overview

In large Windows environments, BitLocker recovery often depends on individual 48-digit recovery passwords stored per device. When these passwords are unavailable, recovery becomes operationally difficult and may result in permanent data loss.

To address this at scale, BitLocker supports a certificate-based recovery mechanism known as a Data Recovery Agent (DRA). Instead of managing recovery passwords per device, administrators generate a single certificate pair that acts as a master recovery key:

  • A public certificate (.cer) is deployed to all managed endpoints and added as a BitLocker protector.
  • A private certificate (.pfx) is securely retained by the organization and can unlock any drive protected by the corresponding public key.
Diagram showing the BitLocker DRA lifecycle — public key deployed to endpoints, private key retained by the administrator, used to unlock any encrypted drive during recovery
BitLocker DRA recovery flow: the public key is deployed to all endpoints; the private key is retained centrally and used to unlock any protected drive during recovery.

When managed through Endpoint Central, this approach provides centralized, controlled, and auditable BitLocker recovery across the organization without weakening BitLocker's encryption model.

Pre-Configuration

Before creating and deploying a master recovery key, review the following prerequisites to ensure successful enforcement.

Supported Operating Systems

Ensure endpoints run Windows editions that support BitLocker DRA.

Windows Client Operating Systems

  • Windows 7 — Enterprise, Ultimate
  • Windows 8 / 8.1 — Pro, Enterprise
  • Windows 10 — Pro, Enterprise, Education
  • Windows 11 — Pro, Enterprise, Education

Windows Server Operating Systems

  • Windows Server 2008 / 2008 R2
  • Windows Server 2012 / 2012 R2
  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022

PowerShell Availability

  • Windows PowerShell 5.1 or later must be present on the system where scripts are executed.
  • Scripts must be executed with administrative privileges.

Security Planning

  • Identify a secure, controlled system where the certificate will be generated.
  • Decide where the private key (.pfx) will be stored — for example, on an offline USB storage device or in a secure vault.
  • Limit access to the private key to authorized recovery personnel only.

Generating the Master Recovery Certificate

This step creates the certificate pair that forms the foundation of centralized BitLocker recovery.

  1. Download the certificate generation script.
  2. Open Windows PowerShell as Administrator on the chosen secure system.
  3. Run the following command, replacing <path to certificate> with the actual directory path of the script file:
Generate BitLocker DRA certificate
PowerShell.exe -ExecutionPolicy Bypass -File "<path to certificate>\UEMS_Generate_Cert.ps1"
  1. When prompted, create a strong password to protect the private key. Running the script generates a BitLocker DRA certificate and exports the following two files to the script's directory:
    • Public Key (.cer) — Deploy this file to all endpoints to configure the BitLocker DRA protector on the drives.
    • Private Key (.pfx)Store this file securely (for example, on a USB device) along with the password. This key is required to unlock any drive encrypted with the corresponding public key.

The certificate is also installed in the local certificate store of the system where it was generated, enabling future export if required.

Deploying the DRA Protector to Endpoints

Once the master recovery certificate is created, the public key must be deployed to all managed devices so it is added as a BitLocker protector.

Add the Deployment Script

  1. Download the DRA deployment script.
  2. In the Endpoint Central console, navigate to Configuration → Script Repositories.
  3. Select Create/Modify Script → Add Script.
  4. Browse for and select the UEMS_BLM_DRA_Script.ps1 file.
  5. Click Add Script.
Endpoint Central Script Repositories screen showing the UEMS_BLM_DRA_Script.ps1 script being added via the Add Script option
Script Repositories — adding the UEMS_BLM_DRA_Script.ps1 deployment script.

Configure Deployment

  1. Navigate to Configuration → Windows → Custom Script → Computer.
  2. Select the UEMS_BLM_DRA_Script.ps1 script added in the previous step.
  3. In the Dependency Files field, browse for and select the generated .cer file. The file must be named UEMS_BLM_PublicKey.cer for the script to work correctly.
  4. Configure the following settings:
    • Frequency: Once
    • Logging: Enabled (recommended for troubleshooting)
    • Run as: System User
  5. Click Deploy and deploy the configuration to the required device groups.
Endpoint Central Custom Script configuration screen showing the DRA script selected with frequency set to Once and Run as System User
Custom Script configuration for the DRA deployment — frequency Once, logging enabled, Run as System User.
Note
The DRA protector is added immediately to drives that are already encrypted (except locked drives). For drives that are not yet encrypted, the DRA protector will be added automatically once the drive becomes encrypted.

Verify Execution

Navigate to Configuration → All Configurations and select the deployed configuration to view the summary.

  • Success — A green status indicates the configuration executed successfully.
  • Failure — If the configuration failed, select the configuration, click Execution Status, and then select View Log to investigate the cause.
Endpoint Central All Configurations view showing the DRA deployment configuration with a green success status
All Configurations view — green status confirms successful DRA protector deployment.

What Happens After Deployment

After successful deployment, each BitLocker-encrypted drive gains an additional recovery protector tied to the DRA certificate. The existing encryption remains unchanged — no re-encryption is required. During recovery scenarios where the standard recovery password is unavailable:

  • The drive can be unlocked using the private .pfx file and its password.
  • This applies uniformly across all endpoints that received the public key.

This establishes a single, organization-controlled recovery mechanism that works across devices without relying on per-machine recovery keys.

Key Security and Lifecycle Considerations

Private Key Protection

  • The private key and its password are critical assets.
  • If both are lost and the certificate is removed from the original generation system, recovery becomes impossible for drives protected by that DRA.
  • Do not delete the certificate from the certificate store of the system where it was generated.

Key Recovery and Rotation

  • If the private key file is lost, it can be re-exported from the original system where the certificate was generated. Refer to the Exporting the Lost DRA Private Key section below.
  • If the certificate itself is lost or compromised:
    • Remove existing DRA protectors from endpoints.
    • Generate a new certificate pair.
    • Redeploy the updated public key organization-wide.

Operational Impact

  • DRA does not replace standard BitLocker recovery passwords — it complements them.
  • Administrators gain a controlled fallback mechanism without reducing endpoint security posture.

Exporting the Lost DRA Private Key

Follow these steps if the private key (.pfx) file has been lost and needs to be re-exported. These steps must be performed on the same machine where the certificate was originally generated.

  1. Download the private key export script.
  2. Open Windows PowerShell as Administrator on the original certificate generation machine.
  3. Execute the following command, replacing <path to certificate> with the actual directory path of the script file:
Export DRA private key
PowerShell.exe -ExecutionPolicy Bypass -File "<path to certificate>\UEMS_Export_Pvt_Key.ps1"
  1. If the machine contains only one DRA certificate named UEMS_BLM_DRA, the script will automatically detect it and proceed to export the private key after prompting you to set a password for the .pfx file.
  2. If multiple DRA certificates exist on the machine (for example, if the generation script was executed more than once), the script will list all matching certificates and prompt you to select the correct one by its Thumbprint.
  3. To identify the correct Thumbprint, verify the public key already deployed to endpoints. On any endpoint where the public key protector is added, run the following command:
Identify the DRA certificate Thumbprint on an endpoint
manage-bde -protectors -get <DriveLetter>:
  1. After selecting the correct Thumbprint, the script will prompt you to set a password and will export the private key (.pfx) to the same directory where the script is executed.
PowerShell output showing the DRA private key export script running successfully — Thumbprint selection and password prompt visible
PowerShell output of the DRA private key export script — Thumbprint selection and password prompt.

Unlocking an OS Drive Using the DRA Private Key

Follow the steps below to unlock the OS drive using the DRA private key at boot.

Note
This procedure assumes the OS drive letter is C:. Connect the USB device containing the .pfx file to the machine before beginning.
  1. Access Command Prompt in Recovery Mode:
    • If the Recovery Password is unavailable, press Esc when prompted for the Recovery Key.
    • Navigate to Troubleshoot → Advanced Options → Command Prompt.
  2. Find the USB drive letter: Run the following commands to identify the drive letter assigned to the USB device (look for the volume labelled USB):
Find the USB drive letter
diskpart
list volume
Command prompt output showing diskpart list volume results with the USB drive letter highlighted
diskpart list volume output — identify the USB drive letter (labelled USB) before running the unlock command.
  1. Unlock the drive: Run the following command, replacing <Path to .pfx file on USB> with the actual path of the .pfx file on the USB device:
Unlock the OS drive using the DRA private key
manage-bde -unlock C: -certificate -cf "<Path to .pfx file on USB>" -pin
  1. When prompted, enter the password created during the .pfx file export.
Command prompt output showing the manage-bde unlock command executing successfully and the OS drive being unlocked with the DRA private key
OS drive successfully unlocked using the manage-bde unlock command with the DRA private key.
  1. Decrypt the drive: The drive is now unlocked but will lock again when the Command Prompt is closed. To prevent this, decrypt the drive using the following command:
Decrypt the OS drive
manage-bde -off C:
  1. Verify decryption status: Decryption takes time. Do not restart until the Conversion Status displays Fully Decrypted. Monitor progress using the following command:
Monitor decryption progress
manage-bde -status C:
  1. Once fully decrypted, close the Command Prompt and restart the machine.

Deleting DRA Protectors

Use the steps below to remove DRA protectors from endpoints — either all DRA protectors or only a specific one.

Add the Deletion Script

  1. Download the appropriate script:
  2. In the Endpoint Central console, navigate to Configuration → Script Repositories.
  3. Select Create/Modify Script → Add Script.
  4. Browse for and select the chosen deletion script file.
  5. Click Add Script.

Configure Deployment

  1. Navigate to Configuration → Windows → Custom Script → Computer.
  2. Select the deletion script added in the previous step.
  3. In the Dependency Files field, browse for and select the exact .cer public key file to be deleted. The file must be named UEMS_BLM_PublicKey.cer for the script to work correctly.
  4. Configure the following settings:
    • Frequency: Once
    • Logging: Enabled (recommended for troubleshooting)
    • Run as: System User
  5. Click Deploy and deploy the configuration to the required device groups.

Verify Execution

Navigate to Configuration → All Configurations and select the deployed configuration to view the summary.

  • Success — A green status indicates the configuration executed successfully.
  • Failure — If the configuration failed, select the configuration, click Execution Status, and then select View Log to investigate the cause.

Related