Rank: 60519 based on 0 downloads (last 30 days) and 0 file submitted
photo

DAdler

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by DAdler View all
Updated File Comments Rating
29 Oct 2011 CPU Temperature Get Data from MSAcpi_ThermalZoneTemperature using WMIService Author: Sven Koerner

This does not work either. I tried this on different machines, too. Thank you anyway for you efforts.

24 Oct 2011 CPU Temperature Get Data from MSAcpi_ThermalZoneTemperature using WMIService Author: Sven Koerner

Hello and thank you for your willingness to help. I can certainly run WMI-CodeCreator without problems and it does give me some results when I query the data from root\WMI. For example, both the VBS script I wrote above and WMI-CodeCreator give me the following results:

-----------------------------------
MSAcpi_ThermalZoneTemperature instance
-----------------------------------
ActiveTripPoint: 0,0,0,0,0,0,0,0,0,0
CriticalTripPoint: 3782
CurrentTemperature: 3352
InstanceName: ACPI\ThermalZone\TZ00_0
PassiveTripPoint: 3732
SamplingPeriod: 10

As I said, for XP machines your code does not work because of ItemIndex, but I am not sure how one can code it differently.

23 Oct 2011 CPU Temperature Get Data from MSAcpi_ThermalZoneTemperature using WMIService Author: Sven Koerner

Hello again,

The error message I get when I run your code is the following:

??? No appropriate method, property, or field ItemIndex for class Interface.Microsoft_WMI_Scripting_V1.2_Library.ISWbemObjectSet.

which is true for Win XP! The method ItemIndex was added in Vista. This is the VBS script generated in WMI-CodeCreator

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\WMI")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM MSAcpi_ThermalZoneTemperature",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "MSAcpi_ThermalZoneTemperature instance"
Wscript.Echo "-----------------------------------"
If isNull(objItem.ActiveTripPoint) Then
Wscript.Echo "ActiveTripPoint: "
Else
Wscript.Echo "ActiveTripPoint: " & Join(objItem.ActiveTripPoint, ",")
End If
Wscript.Echo "CriticalTripPoint: " & objItem.CriticalTripPoint
Wscript.Echo "CurrentTemperature: " & objItem.CurrentTemperature
Wscript.Echo "InstanceName: " & objItem.InstanceName
Wscript.Echo "PassiveTripPoint: " & objItem.PassiveTripPoint
Wscript.Echo "SamplingPeriod: " & objItem.SamplingPeriod
Next

Thanks

19 Oct 2011 CPU Temperature Get Data from MSAcpi_ThermalZoneTemperature using WMIService Author: Sven Koerner

Hello,

Very nice idea, indeed, but your code will only work for windows vista & 7 and not for XP! The reason is because the ItemIndex method is not present in XP. How can one code it for windows XP?

Thanks

24 Oct 2009 Multicore - Parallel processing on multiple cores This package provides parallel processing on multiple cores/machines. Author: Markus Buehren

Thank you very much for this great tool! I started using your code a few of months ago, and I must say it saved me lots of hours of work.

Contact us