# November 28, 2017 - TJY
# Generate a list of Bitlocker recovery keys and display them at the command prompt.
#
# Identify all the Bitlocker volumes.
$BitlockerVolumers = Get-BitLockerVolume
# For each volume, get the RecoveryPassowrd and display it.
$BitlockerVolumers |
ForEach-Object {
$MountPoint = $_.MountPoint
$RecoveryKey = [string]($_.KeyProtector).RecoveryPassword
if ($RecoveryKey.Length -gt 5) {
Write-Output ServerUtilsSetMachineProperty(@ThisMachine(),BitLocker,$RecoveryKey)
}
}
Search Knowledge Base Articles
Bitlocker Code
Did you find this article useful?
Related Articles
-
Windows 10 command line view windows version
To get the version of what Windows you are running you can click on Start, Run and then type in Winv... -
Ryan's Ultimate Time Sync Batch File
net stop w32time w32tm /unregister w32tm /register net start w32time w32tm /... -
Your message couldn't be delivered because you weren't recognized as a valid sender.
Unlock the user at https://security.microsoft.com/restrictedusers... -
Office 365 Blocking emails from Gmail and others
https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/use-directory-based-edge-blocking... -
Windows Server is running out of space
Windows Servers have a problem with c:\windows\winsxs. It gets filled with huge amounts of dat...