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

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

• Likes

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

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?

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:

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close

• @Stygen thank you. I am glad you liked it.

• What version of powershell does this require?