I tried something like this, but I have a report collection issue
#Connect to vCenter Server
Connect-VIServer "vCenter@mylabs.local"
$VMHosts= Get-VMHost | ? { $_.ConnectionState -eq "Connected"} | Sort-Object -Property Name
$results= @()
foreach($VMHost in $VMHosts) {
$esxcli = Get-EsxCli -VMHost $VMHost -V2
$esxcli.system.coredump.network.get.Invoke()
}
Export-Csv -Path .\coredump_Report.csv "VMHost" , "Enabled" , "HostVNic" , "IsUsingIPv6" , "NetworkServerIP" , "NetworkServerPort" -NoTypeInformation -UseCulture $results