VMware Cloud Community
peter79
Enthusiast
Enthusiast
Jump to solution

Script to get host version number

Hey Guys,

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?

Thanks.

Reply
0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

Try the following:

Get-VMHost | Select Name,Version,Build | Export-CSV C:\HostInfo.csv -NoTypeInformation



-


PowerCLI development team

View solution in original post

Reply
0 Kudos
1 Reply
admin
Immortal
Immortal
Jump to solution

Try the following:

Get-VMHost | Select Name,Version,Build | Export-CSV C:\HostInfo.csv -NoTypeInformation



-


PowerCLI development team

Reply
0 Kudos