Temperature sensor with VB.Net

  • Thread starter Thread starter Freddy Coal
  • Start date Start date
F

Freddy Coal

Hi, I would like get the current value of the processor temperature, fan
speed and other data if possible. How I can get that with vb.net?

I'm reading about WMI, but I don't understand how use that, this is my code:

Dim query As New SelectQuery("CIM_TemperatureSensor")
Dim search As New ManagementObjectSearcher(query)
Dim info As ManagementObject

For Each info In search.Get()
txtOutput.Text = info("Status").ToString() & vbCrLf
Next

Thanks in advance for any help.

Freddy Coal
 
Freddy,

You will find several useful results if you google for: wmi .net
temperature

Kerry Moorman
 
Back
Top