we have servers that have fixed drives in which bitlocker locks during reboot. we need to unlock them with a recovery key but right now it is a manual process. below is the powershell component I wrote to help resolve the manual part... will this work?
$SecureString = ConvertTo-SecureString "1234-1568-9123-4567" -AsPlainText -Force Unlock-BitLocker -MountPoint "E:" -RecoveryPassword $SecureString
Also I saved the text file of the recovery key, could I use the -RecoveryKeyPathswitch to reference the file?