While trying to find a way to probe CPU temperature in some simple way, preferably form VBS and WMI. My friend found a nice tool that help you browse WMI classes and generates simple VBS, C# or VB.NET code.
Unfortunately while Win32_TemperatureProbe has CurrentReading prperty, it’s not yet implemented 🙁
If you have some nice hardware independent way to check CPU temperature please let me know.
An example of VBS that can list all user SID numbers in your computer:
strComputer = „.”
Set objWMIService = GetObject(„winmgmts:\” & strComputer & „rootCIMV2”)
Set colItems = objWMIService.ExecQuery( _
„SELECT * FROM Win32_UserAccount”,,48)
For Each objItem in colItems
Wscript.Echo „———————————–”
Wscript.Echo „Win32_UserAccount instance”
Wscript.Echo „———————————–”
Wscript.Echo „Name: ” & objItem.Name
Wscript.Echo „SID: ” & objItem.SID
Next
Really nice tool 🙂
Pingback: It should just work! » Blog Archive » WhoAmI