Skip to content

Instantly share code, notes, and snippets.

@gwblok
Created December 23, 2019 21:00
Embed
What would you like to do?
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