Skip to content

Instantly share code, notes, and snippets.

@gwblok
Created December 23, 2019 21:00
Show Gist options
  • Save gwblok/7199b138be58cec594d5e83064cc5fb0 to your computer and use it in GitHub Desktop.
Save gwblok/7199b138be58cec594d5e83064cc5fb0 to your computer and use it in GitHub Desktop.
Check if HP BIOS is Current
#Check if HP Bios is Current
[version]$BIOSVersionInstalled = Get-HPBIOSVersion
[version]$BIOSVersionAvailableOnline = (Get-HPBIOSUpdates -latest).Ver
if ($BIOSVersionInstalled -lt $BIOSVersionAvailableOnline)
{Write-Output "Has $($BIOSVersionInstalled), Needs: $($BIOSVersionAvailableOnline)"}
else {Write-Output "Compliant"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment