Home All Groups Group Topic Archive Search About
Author
2 Aug 2006 2:25 PM
eSolTec, Inc. 501(c)(3)
Thank you in advance for any and all assistance, it is GREATLY appreciated.
Two questions;
1. Is there a way in VB.NET 2005 to query a motherboard to see if there are
certain sensors? i.e. CPU temp sensor, Fan speed sensor, hard drive temp
sensors etc?
2. Is there a way to Get the information, if it's available into VB.NET 2005?

Michael

Author
9 Aug 2006 8:08 PM
Lars Graeve
Hello Michael,

have a look to the Win32_TemperatureProbe class [WMI]. By using the
ManagementObjectSearcher you can gather several information.

Example (I couldn't verify it, cause my mainboard does not report
temperatures):
Private Sub listTemperatures()

    Dim searcher As New System.Management.ManagementObjectSearcher("SELECT *
FROM Win32_TemperatureProbe")

    For Each service As System.Management.ManagementObject In searcher.Get()
        System.Console.Write(service("Name").ToString & ": ")
        System.Console.WriteLine(service("CurrentReading").ToString & "°C")
    Next service

End Sub


Other system information might be found in other WMI classes (see MSDN).

Greetings, Lars



"eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com>
schrieb im Newsbeitrag
Show quoteHide quote
news:CBC0E60E-B8AC-4C1D-BC34-C3AD94C076F9@microsoft.com...
> Thank you in advance for any and all assistance, it is GREATLY
> appreciated.
> Two questions;
> 1. Is there a way in VB.NET 2005 to query a motherboard to see if there
> are
> certain sensors? i.e. CPU temp sensor, Fan speed sensor, hard drive temp
> sensors etc?
> 2. Is there a way to Get the information, if it's available into VB.NET
> 2005?
>
> Michael