Windows 10 WMI API to know whether the drive is READ/WRITE Protected.

Zera

New Member
Joined
Jun 14, 2022
Messages
1
We've encrypted a drive using bit locker drive encryption. After unlocking the drive, Is there any WMI API's available to get the status of drive? Like, whether it is write protected or not.
 


Solution
For bitlocker specific details, from an elevated Powershell prompt type Get-BitLockerVolume or optionally add | fl * at the end for more details.

To see if a disk is read-only, in Powershel, run the following command
Get-Disk | ? { $_.IsReadOnly -eq $True } or just do Get-Disk | fl * and look for isReadOnly
For bitlocker specific details, from an elevated Powershell prompt type Get-BitLockerVolume or optionally add | fl * at the end for more details.

To see if a disk is read-only, in Powershel, run the following command
Get-Disk | ? { $_.IsReadOnly -eq $True } or just do Get-Disk | fl * and look for isReadOnly
 


Solution
Back
Top