Skip to content

Instantly share code, notes, and snippets.

@lamw
Created February 18, 2016 16:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lamw/c6eb8b5a7229c807bd1b to your computer and use it in GitHub Desktop.
Save lamw/c6eb8b5a7229c807bd1b to your computer and use it in GitHub Desktop.
Retrieve ESXi Major / Update version number using ESXCLI
$esxcli = Get-EsxCli
### To retrieve Major/Update version number of ESXi via ESXCLI
PS C:\Users\lamw\Desktop> $esxcli.system.version.get().version + " Update" + $esxcli.system.version.get().update
6.0.0 Update1
### To retrieve all version information from ESXi via ESXCLI
PS C:\Users\lamw\Desktop> $esxcli.system.version.get()
Build : Releasebuild-3029758
Patch : 17
Product : VMware ESXi
Update : 1
Version : 6.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment