Checking Bitlocker Encryption Status in Visual Basic

I am trying to create an application in Visual Studio using Visual Basic and pull out information about the current computer. Basically, what I want to do is to output the Bitlocker encryption state in Visual Basic, which prints out if C: the drive is bit-wise or not blocking.

I was looking for something that completes this on the Internet, but everything I see has something to do with WMI. It also appears that WMI needs to be installed on every machine on which you will use it. I just want you to be able to switch to the machine after starting the machine and get all my information in the form. My code for pulling everything out right now looks like this:

Public Class ComputerInformation
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        TextBoxComputerName.Text = Environment.MachineName
        TextBoxOSVersion.Text = System.Environment.OSVersion.ToString
        TextBoxOSFullName.Text = My.Computer.Info.OSFullName
        TextBoxCurrentUser.Text = System.Environment.UserName
        TextBox64Bit.Text = System.Environment.Is64BitOperatingSystem
        TextBoxSystemDirectory.Text = System.Environment.SystemDirectory
        TextBoxDomain.Text = System.Environment.UserDomainName
        ' CHECK BITLOCKER STATUS HERE.
    End Sub
End Class

Some help and perhaps an explanation would be greatly appreciated! Thanks!

+4
1

, , Win32_EncryptableVolume WMI. ProtectionStatus , . WMI . Win32_EncryptableVolume , Bitlocker.

, WMI Code Creator. WMI VB.NET, , . Code Language "Visual Basic.NET". Win32_EncyptableVolume Classes ProtectionStatus. " ", . / . , Bitlocker, , , , Bitlocker .

+7

Source: https://habr.com/ru/post/1524560/


All Articles