Hello Luc,
You're right I give you additionnal information:
ForEach-Object -Process {
$esxcli = Get-EsxCli -VMHost $esx -V2
$esxcli.network.vswitch.standard.list.Invoke() |
ForEach-Object -Process {
$vss = $_
$vss.Uplinks | where{$_ -ne $null} | %{
$nic = $_
$netAdapt = Get-VMHostNetworkAdapter -VMHost $esxcli.VMHost -Name $nic
$nicList = $esxcli.network.nic.list.Invoke() | where{$_.Name -eq $nic}
$esxcli.network.nic.get.Invoke(@{nicname="$_"}) |
Select @{N='VMHost';E={$esx.Name}},
@{N='ConfiguredSpeed';E={
if ($_.ExtensionData.AutoNegotiateSupported)
{'Auto negotiate'} else {$_.ExtensionData.Spec.LinkSpeed.SpeedMb}}},