Hoppa till innehåll

  • Logga in via Facebook Logga in via Twitter Logga in via Windows Live Log In with LinkedIn Log In with Google      Sign In   
  • Registrera dig nu!





Foto

PowerShell is King – Read HP Bios Sensor data from WMI

  Skriven av Mikael Nystrom , 16 March 2016 · 2085 visningar

<p>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:</p>
<p>Read HP Bios Sensor data from WMI using PowerShell</p>
<p><a href="http://anothermike2....age26.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" src="http://anothermike2....644&#038;h=292" alt="image" width="644" height="292" border="0" /></a></p>
<p>So, here is the actual code for you to copy:</p>
<pre class="brush: powershell; title: ; notranslate">

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

</pre>
<p>/Mike</p><br />  <a rel="nofollow" href="http://feeds.wordpre...com/2403/"><img alt="" border="0" src="http://feeds.wordpre...ress.com/2403/" /></a> <img alt="" border="0" src="http://pixel.wp.com/...f=&#038;feed=1" width="1" height="1" />

Källa