I'm trying to access some data available in the Windows WMI through PowerShell. I assumed this would be an easy starting point to learn the basics before possibly moving to C.
Ultimately I would like to query an (undocumented) WMI API from Open Hardware Monitor. This was suggested as part of a solution by Jens here: How to get CPU temperature?
However, I'm completely lost. How would I first load the DLL and then query it?
As a starter, I found this list from get-wmiobject -list
CIM_Sensor CIM_BinarySensor CIM_MultiStateSensor CIM_DiscreteSensor CIM_NumericSensor CIM_TemperatureSensor Win32_TemperatureProbe CIM_Tachometer CIM_VoltageSensor Win32_VoltageProbe CIM_CurrentSensor Win32_CurrentProbe
Unfortunately, running get-wmiobject -class XX
on any of those returns nothing. I'm expecting to be able to interrogate a sensor. Can anybody show me the basics or link me to a tutorial?