HEBook a call
Book a callHE
Blog

BitLocker recovery keys missing from Entra ID: how to find and fix them with Intune

8 November 2026 · Shlomi Fanan

A customer came to us with a simple request: "a script that fills in the encryption keys for devices that aren't up to date in 365". A short conversation later, it turned out the script wasn't the problem. Some devices simply couldn't store their key in the cloud. Here's how we solved it.

What exactly is the requirement?

Before writing a line of code, be clear about the goal:

Why do some devices have no key in Entra?

Entra registered devices won't get the policy

The Intune BitLocker profile is meant for Entra joined or Entra hybrid joined devices. Remediations also run only on Entra joined or hybrid joined devices, so on a registered device the key won't upload, no matter how many times you run the script.

The customer had quite a few devices in this state. What we did:

The process: measure first, then fix

  1. Detection script only. Deploy through Intune Remediations a script that checks whether each device has a recovery key and whether it's stored in Entra. At this stage it changes nothing; it only shows the size of the problem. Remediations require Windows Enterprise E3/E5 (included in Microsoft 365 F3/E3/E5), Windows Education A3/A5 or Windows VDA per user, and Business Premium isn't on Microsoft's list. Without one of these licenses, deliver the same script another way, for example as an Intune platform script.
  2. Remediation script in a test environment. The script uploads the existing key to Entra with BackupToAAD-BitLockerKeyProtector. The command saves a recovery password protector, chosen by its ID, so the script has to find that protector (or add one) first. Test it on a test device first.
  3. Gradual rollout. Run the remediation only on the filtered devices, and check results after a week.
  4. Verify. Check the Intune encryption report and the device page in Entra for the key.

Field tips

More on device security settings in Intune in our Intune Security Baselines guide. A recovery key is also part of getting a device back to work quickly, which we covered in restoring a device with Windows Backup for Organizations. We set up device management end to end in our Microsoft 365 security projects.

Where do I see a device's recovery key?

In Entra ID or Intune, on the device page. In Entra, open the device and select Show Recovery Key; every view is written to the audit log (KeyManagement category).

Why doesn't the script work on some devices?

They're probably Entra registered. Re-enroll them or take them out of scope.

Can we just export every key to a file?

Technically yes, but it creates a single point of risk. Better to make sure every key is stored in Entra.

What about Macs?

On a Mac, encryption is FileVault and the recovery key is stored in Intune. We wrote about it in FileVault key rotation.

Do you have encrypted devices with no key in the cloud? We'll check it with you.

Talk to us

Sources