This script is to encrypt drive in Bitlocker
please provide following details in the script
Drive="D:" ##Enter the Drive you want to encrypt
save="C:" ##Enter the Drive you want to save the recovery key
The Recovery key will be stored in the C:\Recoverykey.txt.
You cannot decrypt the drive without using the Recovery key.
Run as system user