# Import Bitlocker Key into computer info

**URL:** <https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765>\
**Category:** Alerts and Toolboxes\
**Created:** [June 2, 2021, 4:19pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765 "2021-06-02T16:19:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_C\_Smith](https://community.simple-help.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@Ryan\_C\_Smith](https://community.simple-help.com/u/Ryan_C_Smith)\
**Post date:** [June 2, 2021, 4:19pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/1 "2021-06-02T16:19:03Z")

</div>

This is handy, people always calling for the Bitlocker key.

```
 # Identify all the Bitlocker volumes.

```

$BitlockerVolumers = Get-BitLockerVolume

# For each volume, get the RecoveryPassowrd and display it.

$BitlockerVolumers |  
ForEach-Object {  
$MountPoint = $\_.MountPoint  
$RecoveryKey = string.RecoveryPassword  
if ($RecoveryKey.Length -gt 5) {

```
Write-Output ServerUtilsSetMachineProperty(@ThisMachine(),BitLocker,$RecoveryKey)

        }        
}
indent preformatted text by 4 spaces

```

run it on all your pc’s.

---

<div class="post-metadata">

**Author:** ![Drew\_Helgeson](https://community.simple-help.com/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@Drew\_Helgeson](https://community.simple-help.com/u/Drew_Helgeson)\
**Post date:** [June 5, 2021, 8:40pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/2 "2021-06-05T20:40:33Z")

</div>

![image](https://community.simple-help.com/uploads/default/original/1X/598dcc6c1dbe75418d46845abe28dea019569631.png)

---

<div class="post-metadata">

**Author:** ![Ryan\_C\_Smith](https://community.simple-help.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@Ryan\_C\_Smith](https://community.simple-help.com/u/Ryan_C_Smith)\
**Post date:** [June 5, 2021, 8:57pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/3 "2021-06-05T20:57:28Z")

</div>

[https://blackhawkmsp.com/crm/knowledge-base/article/bitlocker-code](https://blackhawkmsp.com/crm/knowledge-base/article/bitlocker-code)

Are you running this from SH?

---

<div class="post-metadata">

**Author:** ![Josh\_Barrett](https://community.simple-help.com/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@Josh\_Barrett](https://community.simple-help.com/u/Josh_Barrett)\
**Post date:** [June 10, 2021, 4:49pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/4 "2021-06-10T16:49:27Z")

</div>

Hello,

I am getting the same error as Drew\_Helgeson.

However in CMD I can get the bit locker keys using this. I am just not sure how to import that info into Simple-Help.

CMD: “manage-bde -protectors C: -get”

This is such a great idea! Cant wait to get it working!

Thanks!

---

<div class="post-metadata">

**Author:** ![Ryan\_C\_Smith](https://community.simple-help.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@Ryan\_C\_Smith](https://community.simple-help.com/u/Ryan_C_Smith)\
**Post date:** [June 10, 2021, 5:09pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/5 "2021-06-10T17:09:51Z")

</div>

manageg-bde works great from a batch file but the key is on a blank line so I was never able to grab that line. The powershell outputs one line which woorks. Are you on the latest SH version? They made a change to help import data.

---

<div class="post-metadata">

**Author:** ![Josh\_Barrett](https://community.simple-help.com/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@Josh\_Barrett](https://community.simple-help.com/u/Josh_Barrett)\
**Post date:** [June 10, 2021, 6:28pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/6 "2021-06-10T18:28:05Z")

</div>

> [@Ryan\_C\_Smith](#):
>
> $BitlockerVolumers |  
> ForEach-Object {  
> $MountPoint = $\_.MountPoint  
> $RecoveryKey = string.RecoveryPassword  
> if ($RecoveryKey.Length -gt 5) {
> 
> ```auto
> Write-Output ServerUtilsSetMachineProperty(@ThisMachine(),BitLocker,$RecoveryKey)
> 
> }        
> }
> indent preformatted text by 4 spaces
> 
> ```

Hey Ryan,

I logged out of SimpleHelp and relogged into it and now it works perfectly. Maybe it was a cache issue or something odd.

As a note to anyone reading this the BitLocker data is saved into Customer Machine Properties. That threw me off for a minute trying to find the info.

Thank you Ryan!

---

<div class="post-metadata">

**Author:** ![Ryan\_C\_Smith](https://community.simple-help.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@Ryan\_C\_Smith](https://community.simple-help.com/u/Ryan_C_Smith)\
**Post date:** [June 10, 2021, 6:48pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/7 "2021-06-10T18:48:41Z")

</div>

Glad to help! You should check out my scancircle post. That works awesome too.

---

<div class="post-metadata">

**Author:** ![Josh\_Barrett](https://community.simple-help.com/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@Josh\_Barrett](https://community.simple-help.com/u/Josh_Barrett)\
**Post date:** [June 10, 2021, 6:54pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/8 "2021-06-10T18:54:02Z")

</div>

> [@Ryan\_C\_Smith](#):
>
> scancircle post

Will do! Every little bit of information helps.

---

<div class="post-metadata">

**Author:** ![Adam\_John](https://community.simple-help.com/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@Adam\_John](https://community.simple-help.com/u/Adam_John)\
**Post date:** [July 19, 2021, 12:33pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/9 "2021-07-19T12:33:35Z")

</div>

very new to this product and loving it. Thanks for this.

---

<div class="post-metadata">

**Author:** ![Adam\_John](https://community.simple-help.com/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@Adam\_John](https://community.simple-help.com/u/Adam_John)\
**Post date:** [July 19, 2021, 12:47pm UTC](https://community.simple-help.com/t/import-bitlocker-key-into-computer-info/765/10 "2021-07-19T12:47:31Z")

</div>

This will do it:

$RecoveryKey = manage-bde -protectors C: -get -exclude \*.ht  
Write-Output ServerUtilsSetMachineProperty(@ThisMachine(),BitLocker,$RecoveryKey)
