VMware Cloud Community
VicMware
Contributor
Contributor

esx version

I need to get the version of the host, for example, 5.0.0. Any idea why this line doesnt work?

$version = get-vmhost $vmhost | select $_.Version

Reply
0 Kudos
1 Reply
bayupw
Leadership
Leadership

Hi

You should remove the $_.

Try this one: $version = get-vmhost $vmhost | select version

If you want to get list of the host with the version you can do this:

get-vmhost | select name,version

to get the version & build number, see this post:

Determining the ESX host version and build number with PowerCLI « vmdev.info

Thanks,

Bayu

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
Reply
0 Kudos