Bitlocker encryption scripts not doing anything

I have tried the three bitlocker encryption scripts on two different computer win 10 & 11 but they do not seem to do anything.

The log shows as successful and that the drive is locked but the drives in both cases were not encrypted and still shows as unlocked

recoverykey.txt to c:\ script result shows:

2026/04/23 09:48:22 AM Finished success C:\Recoverykey.txt Drive C: is now in locked state
2026/04/23 09:47:10 AM Started

recoverykey.txt file gets created with 0 bytes in size.

All the encryption scripts were run as system user and all come back as successful but no change to the encryption status on the drives.

Where am I going wrong?

Thanks

@PremJKumar is this one of your team’s scripts?