

Write-Output "Current Installed BIOS Version: $($CurrentBIOS)" Write-Output "Finished Downloading and Installing HP Module" Start-Process -FilePath "$($DownloadDir)\HPCM\*.exe" -ArgumentList "/SILENT" -wait Start-Process -FilePath "$($DownloadDir)\HPCM.exe" -ArgumentList "-pdf -e -s -f$($DownloadDir)\HPCM" -Wait Invoke-WebRequest -Uri $PoshURL -OutFile "$($DownloadDir)\HPCM.exe" Write-Output "HP Module Not Loaded, Loading. $Model = (Get-WmiObject -Class Win32_ComputerSystem).Model $ProductCode = (Get-WmiObject -Class Win32_BaseBoard).Product $ExtractedDir = "$($HPContent)\Extracted" Other considerations, this requires active internet connection, you might have to update script to work with a proxy. Once this happens, I'll test this again and update anything that needs to be updated.

I heard HP is working on updating the Modules so it does work in WinPE, which would be great. It does not automatically reboot, you can modify script to do that, or have your deployment solution do it. If newer BIOS is available than what is installed:.Checks internet for most recently released BIOS version for your device.Checks to see if you have the HP Client Powershell module, if not, downloads v1.1.1 and installs it.Quick follow up to my last post about downloading HP BIOS to be used in creating a package, This Script does a few things: I’m on an HP kick, they have some awesome Client Management tools, and I’m playing around. Get-HPBIOSUpdates -Flash -Password "PASSWORD" -Bitlocker suspend I'll plan to update this in the future when time allows, but all future code will be hosted on GitHub.

The Get-HPBIOSUpdates command now will grab the latest update and Flash it, all in one single command, making it much easier.

It renders parts of this post obsolete, or at least, not as effective as new methods. Update 2020.11.17 - Since I've written this post, HP has added a lot of functionality to their HPCMSL. If you're still looking for your own scripting solution, I'd look at this updated Post: Auto Updates of your BIOS & Drivers with HPIA, HPCMSL, HP Connect – GARYTOWN ConfigMgr Blog Update 2023.04.25 - If you're wanting to Update your HP BIOS, and you have Intune, I'd recommend looking at HP Connect.
