Manage BitLocker with PDQ: Scanners, PowerShell Packages and Reports
Use PDQ’s scanners, package scripts and reports to assess TPM readiness, configure BitLocker, track encryption and handle recovery data safely.

PDQ’s BitLocker workflow gives administrators a way to assess devices, apply encryption settings and review results using three scanners, six package scripts and three reports. The sequence matters: collect baseline data, prepare the TPM and set policy, enable encryption, then scan again to confirm each device’s state.
The scripts are available in the PowerShell-Scanners repository. The scanners are under PowerShell Scanners/Bitlocker Mgmt/scanners; the package scripts are under Packages/Bitlocker Mgmt/packages. Both parts of the workflow require Windows PowerShell 5.1 and elevated access through SYSTEM or a local administrator. Package operations also require the BitLocker PowerShell module, and TPM operations use Get-Tpm.
Start with read-only scans
The three scanners collect information without enabling encryption or changing device settings. Create a custom PowerShell scanner for each script in PDQ, set it to run as SYSTEM, and choose a scan schedule. Use these scanner names so the fields match the report examples:
- TPM Capabilities, using
Get-TpmCapabilities.ps1, reports readiness, manufacturer and version details, firmware type, Secure Boot status and lockout information. It also provides diagnostic details when a value can’t be read. - Bitlocker Status, using
Get-BitLockerStatus.ps1, reports volume encryption progress, protection and lock status, protector types, an assessment, errors and warnings. - Bitlocker Protectors, using
Get-BitLockerProtectors.ps1, lists volume protectors, reads locally available recovery passwords and checks local event logs for recovery-backup history.
Run a small test group first. Review TpmQueryStatus, BitLockerQueryStatus and Assessment before deciding which devices need changes. Reading a recovery password requires an elevated scan and an unlocked volume. If a volume has a locally stored RecoveryPassword protector, the protectors scanner includes that password in its results. Limit access to the scanner data and reports that use it.
Prepare devices before enabling encryption
The six package scripts handle TPM preparation, policy configuration, encryption and removal. For enablement, prepare the TPM where needed, apply the intended policy, then add protectors and start encryption. A present, ready TPM is required by the default encryption configuration. Devices without an available and configured TPM, including virtual machines without a vTPM, can’t use the TPM-dependent configuration.
Set-TpmReady.ps1enables automatic provisioning and initializes a TPM that is present and enabled but not ready. It can’t enable a TPM disabled in firmware or supply a missing TPM.Set-BitlockerPolicy.ps1applies values from its$Policytable and backs up the original settings. It won’t change existing policy values outside that backup. Policy changes don’t re-encrypt volumes that are already encrypted.Enable-BitLockerProtectors.ps1adds the requested protectors and starts encryption when a volume is fully decrypted. The default combination is a TPM protector plus a recovery password.Remove-BitlockerPolicy.ps1restores settings saved by the policy-setting script. It doesn’t alter encryption or protectors.Remove-BitLockerProtectors.ps1removes specified protector types or IDs, but doesn’t decrypt the volume.Disable-BitLocker.ps1removes all key protectors and starts decryption. Use it only when BitLocker should be turned off for the target volume.
Create custom Windows packages with PowerShell steps running as SYSTEM, and follow the repository’s parameter instructions. Every package supports -DryRun $true; enable dry run explicitly when testing policy changes or removals. Review the policy table and parameters before deployment, and apply policy before starting encryption.
Three settings deserve particular attention. Keep -ClearIfNeeded at its default of $false for routine setup: clearing a TPM destroys keys stored in it. -BackupToAD and -BackupToEntra both default to $false, so configure the option that fits your environment and verify recovery access. Finally, -ReturnRecoveryPassword defaults to $true, which puts the password in deployment logs. Set it to $false to suppress that output; the protectors scanner can still collect locally available recovery passwords.
Build reports that reflect scan coverage
After scanning, create three Standard reports in PDQ. The examples use All devices with Group by unchecked, and include only devices for which scanner data exists. Check scan coverage before treating an absent device as protected, unprotected or free of errors.
TPM summary
Use the TPM Capabilities source alongside Device fields Name, Manufacturer, Model and Architecture. Add these scanner fields: IsVirtualMachine, FirmwareType, TpmManufacturerVersion, TpmManufacturer, TpmEnabled, TpmReady, SecureBootEnabled, TpmLockedOut and TpmLockoutCount. Leave result filters unset. If TPM details are missing, inspect TpmQueryStatus, TpmError and TpmNextStep.
BitLocker status
Use Device Name and the Bitlocker Status fields TpmReady, Assessment, MountPoint, ProtectionStatus, LockStatus, KeyProtectors, BitLockerError and BitLockerWarnings. To reproduce the supplied example, set OS to Any and filter TpmReady to true. Remove that filter when investigating devices with false or missing readiness values. Add ConversionStatus and PercentEncrypted if you want progress alongside protection status. After deployment, check for the intended protectors and ProtectionStatus of On (1); assess encryption progress separately.
Recovery passwords
Use Device Name and the Bitlocker Protectors fields MountPoint, KeyProtectorType, KeyProtectorId, RecoveryPassword, RecoverySource and RecoveryBackup. Set OS to Windows and filter KeyProtectorType to values containing RecoveryPassword, which includes entries such as RecoveryPassword (3) while excluding TPM-only rows.
RecoverySource indicates whether the password was read locally. RecoveryBackup summarizes backup activity found in the device’s event log; it doesn’t query Entra ID or Active Directory, perform a backup or confirm that a password can currently be retrieved. An absent backup event doesn’t establish that no backup exists, since older events may no longer be available. Verify access in your approved backup location, restrict report access, avoid emailing exports that contain passwords, and delete downloaded CSV files when finished.
After the packages run, collect fresh scanner data. The reports show the resulting device state, while the package run alone doesn’t confirm that encryption finished or that recovery access works.