Bitlocker - Key Retrieval
Summary
This script audits the recovery keys for each encrypted drive on an agent and adds them to a custom table.
Time Saved by Automation: 5 Minutes
Sample Run
Dependencies
- @plugin_proval_bitlocker (Table)
- @BitLocker Enabled (Role)
- @BitLocker TPM Enabled (Role)
- BitLocker TPM Ready
- Windows - BitLocker Eligibility
Variables
@PowerShellResult@
-> This variable shows whether BitLocker is enabled, retrieves the keys, and returns the corresponding information if it cannot be enabled.@sqlletter@
-> SQL dataset cycling that returns the drive letter checked.
Process
- Creates the required table if it does not already exist in the database.
- Adds the required role definitions for the dataview.
- Queries the target machine(s) and runs PowerShell to return the BitLocker key or the BitLocker status.
- Writes the key back into the Automate database if it is found to be encrypted.
Output
- Script log
- Role
- Dataview