How to find a BitLocker recovery key in Intune
When Intune encrypts a Windows device with BitLocker and the policy requires the backup, the 48-digit recovery key is stored in Microsoft Entra ID. Intune configures the encryption and shows the key. Entra ID stores it and decides who may read it. That split explains most of the confusion around the Intune BitLocker recovery key, because the place where you look for the key is not the place that grants access to it.
In the Microsoft Intune admin center, open Devices, then All devices, select the device and choose Recovery keys under Monitor. Show Recovery Key reveals the BitLocker Key ID, the recovery key and the drive type, as Microsoft’s guide to BitLocker encryption with Intune describes. The Microsoft Entra admin center has the same button on the device’s page. If the device never backed up a key to Entra ID, Intune shows the message “No BitLocker key found for this device”.
A script gets the same key from Microsoft Graph in two steps. Listing the keys of a device never returns the key itself. Only a second call that asks for the key property does, and that call is the one that lands in the audit log.
# Needs the Microsoft Graph PowerShell modules and an account that may read BitLocker keys
Connect-MgGraph -Scopes 'Device.Read.All', 'BitlockerKey.Read.All'
$device = Get-MgDevice -Filter "displayName eq 'WS-0142'"
# Step 1 lists the key IDs and drive types of the device, without the key
$keys = Get-MgInformationProtectionBitlockerRecoveryKey -Filter "deviceId eq '$($device.DeviceId)'" -All
$keys | Format-Table Id, VolumeType, CreatedDateTime
# Step 2 reads one recovery key by its ID and writes an entry to the Entra audit log
(Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $keys[0].Id -Property key).Key
The cmdlet belongs to the Microsoft.Graph.Identity.SignIns module. The cmdlet reference documents the two parameter sets used here, the list with a filter and the read of a single key with its key property. The ID of a stored key is the recovery key ID that a locked device shows on its recovery screen. That lets you pick the right key when a device has several, for example one for the operating system drive and one for a fixed data drive.
The lookup is the easy part. Whether it returns a key depends on who asks, and that is where most teams get stuck. The helpdesk gets the call for a recovery key every week, when a firmware update or a hardware change makes a laptop boot into the recovery screen. The right to read every recovery key in the tenant is one you would rather not hand to twenty people. The rest of this article covers who may read a BitLocker recovery key, how to delegate that safely, and how the au2mator Self-Service Portal turns the lookup into a logged request with a reason and an optional approval.
Who is allowed to read a BitLocker recovery key
The first reader is the owner of the device. By default the registered owner can read the key without any role. Users find it at myaccount.microsoft.com under Devices with the View BitLocker Keys option, or on the Intune Company Portal website. Microsoft’s article on the BitLocker recovery process names the tenant setting that switches this off. It is called “Restrict users from recovering the BitLocker key(s) for their owned devices” and sits in the device settings of Entra ID.
Self-service has limits even when it is switched on. The user needs a second device and a working sign-in while the laptop is locked. A Conditional Access policy that requires a compliant device blocks the key on a private phone. And shared devices, kiosks and many Microsoft Entra hybrid joined devices have no registered owner in Entra ID who could look the key up.
Everybody else needs an Entra role with the microsoft.directory/bitlockerKeys/key/read permission. Of the built-in roles, Microsoft names Cloud Device Administrator and Helpdesk Administrator as the common choices. Broader roles such as Intune Administrator, Security Administrator, Security Reader and Global Reader can read keys as well. Intune roles do not contain the permission. The Help Desk Operator role in Intune may start a key rotation, but to read a key the agent needs one of the Entra roles on top. Our article on Intune automation covers the Intune roles and device actions in detail.
A custom role can carry the single permission, and an administrative unit can limit a role to a set of devices. Both need Microsoft Entra ID P1 or P2. A script reads keys through the BitlockerKey.Read.All permission in Microsoft Graph, which the Graph reference for BitLocker recovery keys also lists as an application permission. An unattended script can therefore read keys without a signed-in user. Every read of the key property creates an entry in the KeyManagement category of the Entra audit log. Entra ID keeps these entries for 30 days with P1 or P2 and for seven days in the free edition, so export them if an auditor needs a longer trail.
The recovery keys belong to the device object in Entra ID. Microsoft’s article on managing device identities warns that deleting a device removes its BitLocker keys and cannot be undone. Microsoft describes a soft delete for devices that keeps deleted devices and their keys restorable for 30 days, but it exists only as a preview, and after that window the keys are gone for good. Delete the device object only when nobody will need to unlock that drive any more.
Why the helpdesk still ends up with a ticket or with too many rights
Microsoft gives you the tools to delegate, and they work. What they produce by default is a standing right. Whoever holds the role can read the recovery key of every device in scope, at any time, without saying why. Privileged Identity Management (PIM) can turn the role into one that an agent activates for a few hours with a justification, a ticket number and an approval. It needs Microsoft Entra ID P2 or Microsoft Entra ID Governance, and the reason belongs to the activation and not to a single key. Three gaps remain, and they are the ones your own script behind the au2mator Self-Service Portal closes further down.
The first gap is the role. The quick answer is Helpdesk Administrator for the helpdesk. The built-in roles reference lists what else that role can do. It resets passwords and invalidates refresh tokens for non-administrators and other Helpdesk Administrators. Cloud Device Administrator can enable, disable and delete devices and read the local administrator passwords managed by Windows LAPS, the Local Administrator Password Solution. Microsoft marks both roles as privileged, and the permission to read BitLocker keys carries the privileged label on its own. A custom role avoids the extra permissions, but it has to be built, licensed and maintained.
The second gap is the reason. The audit log says who read which key and when. It does not say for which ticket, how the caller was identified, or who agreed. That matters more here than for most secrets. A recovery key unlocks the drive without the usual sign-in, so a stolen laptop plus a convincing phone call is all an attacker needs. The helpdesk checklist in Microsoft’s article on the recovery process starts with verifying the identity of the user. Nothing in the admin center enforces that step or records it.
The third gap is the lifetime of what was read. A BitLocker recovery key has no expiration date. It stays valid until the device replaces it. After a key has been used, the device replaces it only where recovery password rotation is active, and that is a setting you should configure explicitly. A key that has been read but never typed in is not replaced at all. Nobody on the helpdesk starts a rotation by hand after every call.
Teams that accept neither the broad role nor the missing reason fall back on the old way. The helpdesk opens a ticket to the few administrators who hold the role, and the user waits in front of the recovery screen.
Four ways to get a BitLocker recovery key to a locked-out user
The table puts a request layer in front of your own script next to the three native options.
| Approach | Who can read the key | Reason and approval | Watch out for |
|---|---|---|---|
| Your recovery key script plus the au2mator Self-Service Portal | One service identity reads it in Entra ID. The requester sees the one key that matches the request. The script stays on PowerShell, Azure Automation or System Center Orchestrator | Reason and identity check are required fields, approval per service, one audit entry per key | You own and maintain the script. The key is part of the request result and of the job output on your engine, so access to both has to stay narrow |
| User self-service in My Account or the Company Portal website | The registered owner of the device | None. The read is in the Entra audit log | Needs a second device and a working sign-in. Not available if the tenant restricts it, if Conditional Access blocks the second device, or for devices without a registered owner such as shared devices and kiosks |
| Built-in Entra role, Helpdesk Administrator or Cloud Device Administrator | Every helpdesk agent, for all devices unless the role is scoped to an administrative unit, and permanently unless it is made eligible with PIM | None by default. PIM (Entra ID P2 or Entra ID Governance) adds a reason and an approval per role activation, not per key | Helpdesk Administrator also resets passwords. Cloud Device Administrator also deletes devices and reads LAPS passwords |
| Custom Entra role with only the key read permission | Every agent in the role, with the same options for scope and PIM | Same as the built-in roles | Needs Entra ID P1 or P2 and has to be built and maintained. The key read permission itself is marked as privileged |
User self-service is the right first option, and the two Entra roles are fine for a small team that everybody trusts. The first row is for the moment when the helpdesk has grown, an auditor asks who can read recovery keys, and the honest answer is a role with twenty members. That approach runs on the engine you already use, PowerShell, Azure Automation or System Center Orchestrator, and the script behind it is short.
The PowerShell behind a BitLocker recovery key service
The script runs unattended under a managed identity or an app registration, and that identity is the only one that needs the right to read keys. The script needs the Microsoft.Graph.Authentication, Microsoft.Graph.Identity.DirectoryManagement and Microsoft.Graph.Identity.SignIns modules, and the identity holds three Microsoft Graph application permissions. BitlockerKey.Read.All returns the key, Device.Read.All covers the lookup of the device by name, and DeviceManagementManagedDevices.ReadWrite.All is what the rotation request at the end needs. If you leave the rotation to the policy on the device, drop the third one and pass Rotate as False.
param([Parameter(Mandatory)][string]$ComputerName, [Parameter(Mandatory)][string]$KeyId,
[Parameter(Mandatory)][string]$VerifiedVia, [Parameter(Mandatory)][string]$Reason,
[string]$TicketId, [ValidateSet('True', 'False')][string]$Rotate = 'True')
$ErrorActionPreference = 'Stop'
# One line per record, whatever was typed into the form
$Reason = ($Reason -replace '\s+', ' ').Trim()
$VerifiedVia = ($VerifiedVia -replace '\s+', ' ').Trim()
$TicketId = ("$TicketId" -replace '\s+', ' ').Trim(); if (-not $TicketId) { $TicketId = 'none' }
$ComputerName = $ComputerName.Trim(); $KeyId = $KeyId.Trim()
if (-not $Reason -or -not $VerifiedVia) { throw "Reason and identity check are required, no key returned" }
if ($ComputerName -notmatch '^WS-[0-9]+\z') { throw "Only workstations (WS-...) are served by this script" }
if ($KeyId -notmatch '^[0-9A-Fa-f-]{8,36}\z') { throw "Enter at least the first 8 characters of the key ID on the recovery screen" }
# The only engine-specific line. Managed identity on Azure Automation, or an app registration
# with a certificate on PowerShell or Orchestrator (-ClientId -TenantId -CertificateThumbprint)
Connect-MgGraph -Identity -NoWelcome
$dev = @(Get-MgDevice -Filter "displayName eq '$ComputerName'" -Property Id, DeviceId, DisplayName)
if ($dev.Count -ne 1) { throw "Found $($dev.Count) devices named $ComputerName, expected exactly one" }
# List the keys of the device, still without the key, and pick the one the recovery screen asks for
$keys = @(Get-MgInformationProtectionBitlockerRecoveryKey -Filter "deviceId eq '$($dev[0].DeviceId)'" -All)
$match = @($keys | Where-Object { $_.Id -like "$KeyId*" })
if ($match.Count -ne 1) { throw "$($keys.Count) keys stored for $ComputerName, $($match.Count) of them match key ID $KeyId" }
# This call returns the key and writes the entry to the Entra audit log
$key = (Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $match[0].Id -Property key).Key
if (-not $key) { throw "Key $($match[0].Id) was found but its value could not be read" }
# Ask Intune for a new key. A locked device can only receive the request at a later check-in, after the user has unlocked it
$rotation = 'not requested'
if ($Rotate -eq 'True') {
try {
$graph = 'https://graph.microsoft.com'
$md = @((Invoke-MgGraphRequest -Method GET -Uri "$graph/v1.0/deviceManagement/managedDevices?`$filter=azureADDeviceId eq '$($dev[0].DeviceId)'&`$select=id").value)
if ($md.Count -ne 1) { throw "found $($md.Count) Intune devices for $ComputerName" }
Invoke-MgGraphRequest -Method POST -Uri "$graph/beta/deviceManagement/managedDevices/$($md[0].id)/rotateBitLockerKeys" | Out-Null
$rotation = 'requested'
} catch { $rotation = "ATTENTION not requested, $($_.Exception.Message)" }
}
"Ticket $TicketId, $ComputerName, key ID $($match[0].Id), recovery key $key, verified via $VerifiedVia, rotation $rotation, reason $Reason"
The script refuses to run without a reason and an identity check. It returns exactly one key, the one whose ID matches what the locked device shows, so the agent never browses the keys of a device. BitlockerKey.Read.All covers every device in the tenant. Treat the identity that holds it as privileged and let the script decide which devices it serves. The name check near the top is the simplest form of that, and you can replace the pattern with your own naming scheme. It also keeps quotation marks out of the Graph filter, and the check on the key ID keeps wildcards out of the comparison that picks the key. If a re-enrollment has left two device objects with the same name, the script stops instead of guessing.
The rotation request is a safety net on top of the rotation policy on the device, which the section on rotation covers, and it is optional. Microsoft documents the rotateBitLockerKeys action only in the beta version of Microsoft Graph, so it can change. That is why it sits in its own error handling and the result line starts the rotation status with ATTENTION when the request fails. The key is returned either way. A device that sits at the recovery screen can only receive the request once it checks in with Intune again, which is after the user has unlocked it. A device that is still running and online can rotate before anyone has typed the key, and the key that was just handed out is then useless. Pass Rotate as False for requests that are not about a locked device.
How au2mator lets the helpdesk hand out a BitLocker recovery key without an Entra role
au2mator is a self-service portal in front of the scripts on your engine. The helpdesk agent picks a service and fills in a form, an approver confirms if your policy says so, and the script runs on your engine under its own identity. The agent holds no Entra role, and the recovery key comes back as the result of the request, visible to the person who asked for it.
au2mator ships no Intune or BitLocker connector of its own. It comes with ready-made PowerShell scripts you can start from, or you connect the script above as it is. Your scripts stay where they are, on PowerShell, Azure Automation or System Center Orchestrator, and nothing is rewritten. The Entra audit log still records every read of a key, but it no longer names a helpdesk agent, because the script signs in with its own identity. The au2mator audit entry shows the person, the ticket, the identity check and the reason behind each read.
What a BitLocker recovery key service looks like in au2mator
The service points to the script above on the engine where it runs. The form asks for the device, picked from a lookup that is loaded from the directory, and for the first eight characters of the key ID that the user reads from the recovery screen. A dropdown named “Identity verified via” and the reason are required fields, so a request cannot be submitted without them. A further dropdown passes True or False for the rotation request. The ticket number is optional, because the call often comes before a ticket exists.
Permissions decide who sees the service. The first-level team sees the service for user workstations, and a second service for shared devices and kiosks is visible only to the team that runs them. The second service points to a copy of the script with the name pattern of those devices. Approval is one level per service. The service for user workstations can run without one, because the identity check, the reason and the log are the controls. The devices behind the second service have no owner whose identity the agent could check. Its requests therefore go to a named approver or to an approver group, where one member or a defined share of the group has to approve.
For execution, au2mator starts the script through the application programming interface (API) of your engine, and the script signs in with its own managed identity or app registration. The audit entry keeps requester, approver, form values, timestamps and the script result. That result contains the recovery key, and so does the job output of your engine, so keep access to both narrow. This is one more reason to keep the rotation request, because a key that has been rotated is worthless in any log. If you report the outcome back to your ticketing tool, report the status and never the result line.
After the key is used, rotation finishes the job
A recovery key that was read out over the phone is a secret that two more people know, and it does not expire on its own. BitLocker has a setting for exactly that. With client-driven recovery password rotation the device creates a new recovery key after the old one has been used to unlock the drive and backs the new one up to Entra ID. In a current Intune disk encryption policy the setting is called “Configure Recovery Password Rotation”, and BitLocker profiles created before June 19, 2023 list it as “Configure client-driven recovery password rotation”. You enable rotation either for Microsoft Entra joined devices only or for Microsoft Entra joined and hybrid joined devices.
Do not rely on the default. Microsoft’s Intune reference says a device does not rotate while the setting is not configured, but the Windows policy reference names rotation for Microsoft Entra joined devices as the default. Set the value explicitly, and require the backup to Entra ID before BitLocker is turned on, because the rotation only takes effect with that requirement.
That setting covers a key that has been used. For a key that has been read but never typed in, Intune has the BitLocker key rotation remote action, which is what the script requests through Microsoft Graph. Microsoft describes it as a refresh of the recovery key for the operating system drive, and the BitLocker configuration service provider (CSP) behind it also rotates the recovery passwords of fixed data drives. According to the Intune guide from the first section, the action needs Windows 10 version 1909 or later, the rotation setting and the required backup to Entra ID. In the admin center the action needs an Intune role such as Help Desk Operator or Endpoint Security Manager.
FAQ: BitLocker recovery keys in Intune
In the Microsoft Intune admin center, open Devices, then All devices, select the device, choose Recovery keys under Monitor and select Show Recovery Key. You see the BitLocker Key ID, the recovery key and the drive type. The key itself is stored in Microsoft Entra ID, so the Microsoft Entra admin center shows it on the device’s page as well.
An Entra role, not an Intune role. The permission is microsoft.directory/bitlockerKeys/key/read. Cloud Device Administrator and Helpdesk Administrator are the common built-in roles that contain it, and a custom role can carry only this permission. The Help Desk Operator role in Intune can start a key rotation but does not include the right to read keys.
Yes, by default. The registered owner of a device finds the key at myaccount.microsoft.com under Devices, or on the Intune Company Portal website. You can switch this off with the Entra device setting that restricts users from recovering the keys of their owned devices. The user needs a second device to sign in, and a Conditional Access policy can block that device.
Natively you can come close with a custom Entra role that holds only the key read permission. It is still a standing right without a reason or an approval, unless you add Privileged Identity Management, which needs Entra ID P2 or Entra ID Governance and asks for the reason per role activation, not per key. The alternative is a request layer such as the au2mator Self-Service Portal. The agent fills in a form with the device, the key ID, the identity check and the reason, and your own script reads the key under its own identity on PowerShell, Azure Automation or System Center Orchestrator. Nothing is rewritten for the portal, and au2mator keeps the audit entry.
Only if client-driven recovery password rotation is active on the device, so enable it explicitly in the BitLocker policy. Then the device creates a new recovery key after the old one has been used and backs it up to Microsoft Entra ID. Where rotation is off, the key stays valid. An administrator can also start the BitLocker key rotation remote action in Intune, which covers a key that has been read but never used.
Yes. Showing or reading a recovery key creates an entry in the KeyManagement category of the Microsoft Entra audit log, with the account that read it and the key ID. The log does not record the reason or how the caller was identified. In au2mator the reason, the identity check, the ticket and the approver are part of the audit entry for each request.
Conclusion: finding the key takes a few clicks, but handing it out safely is the real work
The Intune BitLocker recovery key is a few clicks away in the admin center and two calls away in Microsoft Graph. The harder question is who may make them. A built-in role answers that with a standing right for the whole helpdesk and a list of other permissions nobody asked for. A custom role and PIM narrow that down, but the reason still belongs to a role activation and not to a key. A short script under one service identity, with a recorded identity check, a required reason, an approval where you want one and a rotation after use, answers it per request. au2mator puts that script behind a form and keeps the record of who asked for which key and why.
If you want to see how your recovery key requests could run as a self-service request on the scripts you already have, book a 30-minute call with Michael Seidl, Microsoft Most Valuable Professional (MVP) and founder of au2mator.