August 17th, 2013

PowerTip: Use PowerShell to Write BitLocker Recovery Key to Text File

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to write your BitLocker recovery key to a text file.

Hey, Scripting Guy! Question If I forgot to save my BitLocker recovery key when I enabled BitLocker on my laptop, how can I use Windows PowerShell to write it to a text file so I can copy it to a USB key for safe keeping?

Hey, Scripting Guy! Answer From an elevated Windows PowerShell console, use the Get-BitLockerVolume function, select -MountPoint C, choose the KeyProtector and the RecoveryPassword properties, and then redirect the output to a text file:

(Get-BitLockerVolume -MountPoint C).KeyProtector.recoverypassword > c:\bitlockerkey.txt

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback