Hi all I am using the script below......but out put is blank file
Please correct me where is mistake
connect-viserver vcenter
Get-VMHost | ForEach-Object {
$VMHost = $_
Foreach($vihost in $hosts){
$esxcli = Get-VMHost $vihost | Get-EsxCli
$enic = $esxcli.system.module.get("enic").version
$fnic = $esxcli.system.module.get("fnic").version
$BuildVersion = $esxcli.system.module.get("Config.Product.FullName").version
$VMHost | Select name, manufacturer, Version,@{N="Enic";E={$enic}},@{N="Fnic";E={$fnic}},@{N="BuildVersion";E={$_.Config.Product.FullName}}
$enic
$fnic
}
} | Export-Csv "c:\temp\ENIC.csv" | Sort Name
Message was edited by: DYNChary