What It Does
By default the script checks every fixed drive and requires protection on the OS drive. Setting Drives checks only the named volumes and requires protection on each. For each drive it reads BitLocker protection, encryption percentage, method and key protectors. Any checked drive with protection on but no recovery password raises an alert.
It then looks for evidence that the recovery key was backed up. For Entra ID it reads the BitLocker Management event log for a backup event that carries one of the drive's current recovery password IDs, so a backup from before a key rotation does not count. A PC cannot read its own key from Active Directory, so on a domain PC with the backup policy on it reports the backup as unknown and does not alert.
Keys kept by MBAM or by your RMM are invisible to this check, which is why RequireEscrow is off by default. Turn it on only where keys go to Entra ID or Active Directory, and it then alerts if a protected drive has a recovery password but there is neither matching Entra backup evidence nor an Active Directory backup policy on a domain-joined PC.
On a fictional client laptop, an answer of “C: has no recovery password” means the protected drive has no recovery-password protector. Open a ticket to correct that protection gap and rerun the monitor before handing over the laptop.
Treat an Escrow value of “Unknown (AD)” separately. The PC sees the domain backup policy but cannot verify the saved key. Ask an authorized technician to check the client’s recovery directory. Keys held in an RMM or MBAM require a separate check there.
Before You Run It
- Turn on RequireEscrow only where keys are backed up to Entra ID or Active Directory. The monitor cannot see keys in other systems.
- Confirm an unknown Active Directory result in AD Users and Computers. The PC cannot prove it either way.
- If you set Drives to require encryption on specific data drives, include the OS drive too if you still want it checked.
- It skips Windows Home and machines without the BitLocker tools, so do not read a skip as encrypted.
Type and Risk
- Type: Monitor. It checks one condition. It exits 1 when it finds the problem, so your RMM can alert on it, 0 when all is well, and 2 when it could not run.
- Risk: Low. It reads and changes nothing.
- Restart: It never restarts the machine.
- Typical run: Under 15 seconds.
- Example answer: "BitLocker ON for C:; recovery key escrow: Entra ID"
- Tested before listing on Windows 11 with Windows PowerShell 5.1, run as SYSTEM, against its own test cases.
Inputs
Pass an input as an argument (-Name value), as an environment variable with the same name, which is how most RMMs pass script variables, or change its default in the param() block at the top of the script. An argument wins over an environment variable, which wins over the default.
- RequireEscrow: true to alert when a recovery key has no escrow evidence. Only meaningful when keys are escrowed to Entra ID or AD. Default false: check only protection and the recovery password.
- Drives: Drive letters to check, separated by commas, e.g. "C:, D:". Default empty: every fixed drive. A letter that BitLocker cannot protect on this PC (not a fixed drive or an encryptable volume) is an error.
Every script also takes DryRun, OutputFormat (Text, Answer, Json or Csv), ExportPath and ResultField, which writes the answer to an RMM custom field.
License
Provided "as is" under the MIT License, without warranty of any kind. Test before production use. MSP Outpost and User First Digital Inc. accept no liability for any damage or loss.