I needed to log the temperature of the processor. I found a Powershell function that could be used, but listed more information than I needed, so I modified it. The original function can be found here. (new window). I modified the function to only grab the temperature in Celsius, and added a log to file with Date/Time detail, as well as allow multiple processor sensors to be recorded.
This is also an example of using New-Object and Add-Member
The script can be found on pastebin here. (new window)
No comments:
Post a Comment