Created
October 19, 2017 14:43
-
-
Save a73xsh/81fa14b49adce31ab83da0a268f76561 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$hosts = Get-VMHost | |
$versions = @{} | |
Foreach($vihost in $hosts){ | |
$esxcli = Get-VMHost $vihost | Get-EsxCli | |
$versions.Add($vihost, ($esxcli.system.module.get("fnic") | | |
Select Version)) | |
} | |
$versions.GetEnumerator() | Sort Name | Format-List |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment