Guest User

Untitled

a guest
Oct 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. $hosts = Get-VMHost
  2. $versions = @{}
  3. Foreach($vihost in $hosts){
  4. $esxcli = Get-VMHost $vihost | Get-EsxCli
  5. $versions.Add($vihost, ($esxcli.system.module.get("enic") |
  6. Select Version))
  7. }
  8. $versions.GetEnumerator() | Sort-Object Name | Format-List
Add Comment
Please, Sign In to add comment