How to get the current HPE iLO current firmware versions using PowerShell

Here is a quick script to gather HPE iLO firmware information from multiple servers

$hpservers = '192.168.0.1', '192.168.0.2'
$credential = Get-Credential 
$connection = $hpservers | Connect-HPEiLO -Credential $credential -DisableCertificateAuthentication

Get-HPEiLOFirmwareInventory -Connection $connection | Select-Object -Property HostName, @{Name='Index';Expression={$PSItem.FirmwareInformation.Index}}, @{Name='FirmwareName';Expression={$PSItem.FirmwareInformation.FirmwareName}}, @{Name='FirmwareVersion';Expression={$PSItem.FirmwareInformation.FirmwareVersion}}, @{Name='FirmwareFamily';Expression={$PSItem.FirmwareInformation.FirmwareFamily}}

Leave a Reply

Your email address will not be published. Required fields are marked *