Skip to content

Instantly share code, notes, and snippets.

@trodemaster
Created January 5, 2017 00:16
Show Gist options
  • Save trodemaster/1a2c5a73361b8859bac84ad74f9bfcaa to your computer and use it in GitHub Desktop.
Save trodemaster/1a2c5a73361b8859bac84ad74f9bfcaa to your computer and use it in GitHub Desktop.
# get ESXi build from VMware depot profile
# requires powercli...
# add vmare online depot
Add-EsxSoftwareDepot -DepotUrl https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
# get ESXi build from the image profile named "ESXi-6.0.0-20161104001-standard"
((Get-EsxImageProfile -Name "ESXi-6.0.0-20161104001-standard").viblist | Where-Object {$_.Name -eq "esx-base"}).Version.split('.') | Select-Object -Last 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment