Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

You can try something like this

foreach($esxcli in Get-VMHost | Get-EsxCli -V2){
    $esxcli.hardware.platform.get.Invoke() |
    Select @{N='VMHost';E={$esxcli.VMHost.Name}},VendorName,ProductName,SerialNumber,
        @{N="BIOS version";E={$esxcli.VMHost.ExtensionData.Hardware.BiosInfo.BiosVersion}},
        @{N="BIOS date";E={$esxcli.VMHost.ExtensionData.Hardware.BiosInfo.releaseDate}}
}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference