Critical vulnerability in HPE Integrated Lights-out 4 (iLO 4) 2.53 and previous versions

I wrote a to do a simple upgrade.

Download the latest firmware HERE

Download module HERE

Find-HPiLO XXX.XXX.XXX.XXX-(Subnet Mask) | Where {$_.FWRI -lt .54 -AND $_.PN -like 20;**”} | Select -ExpandProperty HOSTNAME | Out-File c:\temp\ilo4.txt
$ = get-content c:\temp\ilo4.txt
$username = “Administrator”
$ilocreds = read-host “Please enter your password”
-HPiLOFirmware -Server $server -username $username -password $ilocreds  -Location X:\\ILO\ilo4_254.bin