I'm trying to script the automatic unlocking of several drives on several PC's.
I am using Bitlocker External Keys for the unlocking, not the recovery password.
The command is:
manage-bde -unlock h: -rk "K:\%BITLOCKER-EXTERNAL-KEY%"
External Keys for BL are stored as *.BEK files. All of mine are stored at the root of my encrypted usb drive.
I need a script which will cycle through every BEK file replacing it within the variable, only stopping once a successful unlock has occurred.
I believe a successful unlock is errorlevel 0.
I have around 60 BEK files and without this script I would need to process each one manually. I can code most of it apart from looping a load of files into a variable.
Thanks