Skip to main content

Bitlocker - Backup Recovery Key to AD

Summary

This script backs up the existing BitLocker recovery key to the joined AD domain.

Time Saved by Automation: 10 Minutes

Sample Run

Sample Run

Dependencies

Send-BitlockerADRecovery.ps1

Variables

VariableDescription
BaseURLContains the file server address
WorkingDirectoryContains the destination path where the file server file is kept
PS1URLContains the complete file path in the file server for direct download
PS1PathDenotes the complete path where the file is stored on the local machine after downloading from the file server
PS1TempPathStores the downloaded file temporarily in the local system directory.
PS1LogStores the complete PowerShell execution log.
PS1DataLogStores the PowerShell data log
PS1ErrorLogStores the PowerShell error log.

Process

The script gathers information about existing BitLocker volumes. It then loops through each volume and runs the Backup-BitLockerKeyProtector cmdlet against each encrypted drive. If the process fails, the -data.txt file will have FAIL written to it, and the -error.txt log file will be generated. Otherwise, SUCCESS will be written to the data log file.

The machine must be using BitLocker for encryption.

Output

  • Script log