Skip to content
Menu
  • CloudThesis-Home
  • Cloud Management
    • VMware Cloud
    • VCF (VMware Cloud Foundation)
    • vRO
    • vRA
    • vRealize Log Insight
    • vCloud Director
    • Hybrid Cloud Extension (HCX)
    • vCloud
    • Cloud on AWS
  • VMware
    • vCenter
    • vSphere
      • Generic vSphere Commands
    • ESXi
    • VMware vRealize Suite Lifecycle Manager –8 Deployment Guide
    • VMware Site Recovery Manager (SRM)
    • vRealize Network Insight
    • VMware Horizon
  • Power CLI
    • PowerCLI Snippets
  • NSX
  • vSAN
    • vSAN 7
  • Nutanix
  • VOIP
  • Microsoft
    • Azure Cloud
    • Microsoft Windows Server
    • Hypervisor
    • Create Azure VMs (Portal)
    • Create Azure VMs – PowerShell
  • Author
  • Contact

Esxi Nic details with PowerCLI script .

Posted on June 16, 2019

Through this script you will get the Nic details of require Esxi  and export to CSV format.

VM report powerCLI script :

PowerCLI-10.0.0-Logo

Open the PowerCLI icon (Run as Administrator) and you can execute commands manually, run scripts manually or automate your scripts with Task Scheduler (see below).

Del *.csv

$i=0
$hosts = "EsxList.txt"
$vhosts = Get-Content $hosts
$cnt = $vhosts.Count

$vhosts | ForEach-Object {
$vhost=$_
$outfile = ".\$($vhost).csv"
$i++

try{
Write-Progress -Activity "Scan In Progress " -Status ("Esx Host : {0}" -f $vhost) -PercentComplete ($i/$cnt*100) -Id 0
}
catch [System.DivideByZeroException]{}

. ".\getcdp.ps1" -VMHost $vhost | Export-Csv -NotypeInformation $outfile
}

Write-Host "Finalizing ......" -f blue
$swp = @() ; ls *.csv | %{ $tmp = Import-CSV $_ ; $swp += $tmp } ; $swp | Export-CSV .\Esxi-Nic-Info.csv -NoTypeInformation
Write-Host "Completed....Please Check the Generated : Esxi-Nic-Info.csv" -f cyan

 

Thanks hope you like it.

Rajiv Pandey.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search Topic

Categories

  • Azure Cloud
  • Cloud Management
  • Cloud on AWS
  • Create Azure VMs – PowerShell
  • Create Azure VMs (Portal)
  • ESXi
  • Generic vSphere Commands
  • Hybrid Cloud Extension (HCX)
  • Hypervisor
  • Microsoft
  • Microsoft Azure Cloud and Services
  • Microsoft Windows Server
  • NSX
  • Nutanix
  • Power CLI
  • PowerCLI Snippets
  • vCenter
  • VCF (VMware Cloud Foundation)
  • vCloud
  • vCloud Director
  • VMware
  • VMware Cloud
  • VMware Horizon
  • VMware Site Recovery Manager (SRM)
  • VMware vRealize Suite Lifecycle Manager – 8.0
  • vRA
  • vRealize Log Insight
  • vRealize Network Insight
  • vRO
  • vSAN
  • vSAN 7
  • vSphere
  • Windows Servers
©2025 | WordPress Theme by Superbthemes.com