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!