Hi All,
I have the script which will show the bios version of the esxi host.
can we add more lines to get esxi host server model number (like Dell R910,R720... HP, IBM) with serial numbers. and export it in excel or csv format.
Script to get bios version is given below.
$report = @()
Get-View -ViewType HostSystem | %{
$row = "" |Select Name, "BIOS Version", "BIOS Date"
$row.name = $_.name
$biosTemp = ((($_.Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo | Where {$_.Name -like "*BIOS*"}).Name -split "BIOS ")[1] -split " ")
$row."BIOS Version" = $biosTemp[0]
$row."BIOS Date" = $biosTemp[1]
$report += $row
}
$report
its Out put comes like this
Thanks all in advance
