So I am making a script that will enable Bitlocker through powershell. The reason I am making this script it so I can place it on my companies MSP, making automation that much easier. I have the script that enables bitlocker and makes the recovery key for bitlocker; however, it is company policy that we place the computer name at the beginning of the file name.
I am basically wondering if there is a way to get the full path of this newly created bitlocker key, that way I can rename it? If there is a better way to do this, then please let me know. Basically I want to add local computer name to the beginning of the file name.
Get-BitLockerVolume | Enable-BitLocker -EncryptionMethod Aes128 -RecoveryKeyPath "path to key folder" -RecoveryKeyProtector