Navigate

EOAS Help Desk

  • Register

  • or
  • Login
    Need a password reminder?
or
New Ticket
  • Create a ticket

    Create ticket using a form

  • Submit Community Topics

    Community Topics and suggestions submitted by customers like you

  • Start a chat session

  • Knowledgebase Read help articles
  • News News & updates
  • Community Custom suggestions
  • Downloads Browse our downloads
  • New Ticket We are here to help
  • Portal
  • Knowledgebase
  • Adobe Sit License
  • Use PowerShell to get the Bitlocker recovery key
Subscribe Download PDF

Use PowerShell to get the Bitlocker recovery key

Burner EOAS
2023-02-01
2 Comments
in Adobe Sit License

Overview

The following information explains how to retrieve a copy of the Bitlocker recovery key using the PowerShell console. These instructions apply to Microsoft Windows 10.

Instructions

Step 1

Click the Start button, search for PowerShell. Right-click the PowerShell menu item and select Run as administrator

Step 2

At the PowerShell command prompt, enter the following and click Enter at the end:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Step 3

At the PowerShell command prompt, enter the following and click Enter at the end:

mkdir c:\temp

Step 4

Save the attached file Get-BitlockerRecoveryKeys.ps1 to the location you created at C:\Temp

Step 5

From the PowerShell command prompt, enter the following and click Enter at the end:

cd c:\temp

Step 6

From the PowerShell command prompt, enter the following and click Enter at the end:

.\Get-BitlockerRecovery.ps1

You should see one or more lines of output that identify the drive and the recovery key for that drive. If you email a copy of that information to helpdesk@eoas.ubc.ca, we will store that information safely, and you can subsequently use that information to unlock your computer's hard drive if Bitlocker requests the information.

Attachments

  • Get-BitlockerRecoveryKeys.ps1 [572.00 B]

Rate the quality of this page

This page was helpful :) :( This page was not helpful

41 of 87 people found this page helpful

Comments (2)

Jamal Thu, 16th Jul 2020 11:32am

how do I run this for remote computers on my company network?
Thanks in advance. this is great help.

MJE Tue, 5th Jul 2022 8:18am

# November 28, 2017 - TJY
# Generate a list of Bitlocker recovery keys and display them at the command prompt.
#

# Modified to only display volumes that have recoverykeys, 2022/07/05 CodexIT, MJE

# Identify all the Bitlocker volumes.
$BitlockerVolumers = Get-BitLockerVolume

# For each volume, get the RecoveryPassowrd and display it.
$recovery=@()
$BitlockerVolumers | where KeyProtector -ne $false |
ForEach-Object {
$MountPoint = $_.MountPoint
$RecoveryKey = [string]($_.KeyProtector).RecoveryPassword
if ($RecoveryKey.Length -gt 5) {
$props=[ordered]@{}
$props.add("MountPoint",$MountPoint)
$props.add("RecoveryKey",$RecoveryKey.trim())
$recovery+=New-Object -TypeName psobject -Property $props
}
}



if ($recovery.count -gt 0) {
$recovery|Format-Table
} else {
"false"
}

Add a comment

Quick Jump
  • EOAS Help Desk
  • Knowledgebase
  • News
  • Downloads
  • Community
  • New Ticket
Top
Helpdesk software provided by Deskpro