The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

  • about.me

    about.me/mikaelnystrom

  • Archives

  • Meta

PowerShell is King – Read HP Bios Sensor data from WMI

Posted by Mikael Nystrom on March 16, 2016

I was bored in my hotel room and I ended up browsing WMI, found one cool/fun thing. I have a EliteBook 8570w and it turns out that HP uses WMI to store data and that makes it possible to read the data using PowerShell of course. Here is how:

Read HP Bios Sensor data from WMI using PowerShell

image

So, here is the actual code for you to copy:


#Read HP Bios Sensor data from WMI using PowerShell
$BIOSSensor = Get-WmiObject -Class HP_BIOSSensor -Namespace root\hp\instrumentedbios
$BIOSSensor | Select-Object Name,CurrentState,CurrentReading,Description

/Mike

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: