PowerCLI: List Server Serial Numbers
This is a quick one-liner to list the serial number of all your ESXi hosts. Enjoy!
Get-VMHost | Get-View | Select Name, @{l=”SerialNumber”; e={$_.Hardware.SystemInfo.OtherIdentifyingInfo.IdentifierValue.split(“,”)[0]}}