Find the script as follows.
$ExportFilePath = "C:\Users\user\Desktop\esxi.txt"$PuttyUser = "root"$PuttyPwd = "w2k8the$"$HostNic = "vmnic0,vmnic1"$Plink = "C:\Users\user\Desktop\plink.exe"$PlinkOptions = " -v -batch -pw $PuttyPwd"$RCommand = '"' + "ethtool -i " + $HostNic + '"'$ESXHosts = Get-VMHost | where {$_.Model -match "ProLiant BL*"} | Sort Name$Report = @()ForEach ($ESXHost in $ESXHosts) {
0 Comments