Wrong BitLocker Status Retrieval for Encrypted USB Drive Using WMI in C#
I’m trying to retrieve the BitLocker status of a USB drive using WMI in C#. I have written the following code to determine the protection status, conversion status, and encryption method of the drive. The code works well for a non-BitLocker protected USB drive but returns wrong results for a BitLocker-protected USB drive. Here is my code: