Does anyone have a script that would take all the hosts in vCenter and output each host name and current ESX version number to an excel file?
Try the following:
Get-VMHost | Select Name,Version,Build | Export-CSV C:\HostInfo.csv -NoTypeInformation
PowerCLI development team
View solution in original post