Home > Powershell, VMWare > Script of the day – Powercli one liner to get ESX host versions

Script of the day – Powercli one liner to get ESX host versions

So I was looking at an ESX estate that is managed by someone else and was hoping to do a few ‘Get-EsxCli’ queries.
Of course Get-EsxCli only works properly from 4u2, so I needed to find a host that was patched up to date.

The easy way? PowerCli of course.

get-view -ViewType HostSystem -Property Name,Config.Product | select Name,@{N="Build";E={$_.Config.Product.FullName}} | sort build,name
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.