Highlighted
Enthusiast
Enthusiast

Script to get host version number

Jump to solution

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.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Immortal
Immortal

Try the following:

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



-


PowerCLI development team

View solution in original post

0 Kudos
1 Reply
Highlighted
Immortal
Immortal

Try the following:

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



-


PowerCLI development team

View solution in original post

0 Kudos