vCenter Inventory via PowerShell

vCenter Inventory via PowerShell


It is great to be able to virtualize servers. Here is a simple script to gather the inventory of your vCenter server. You need the VMWare PowerCLI and PowerShell.

Connect-VIServer {Virtual Center Machine}

Get-Inventory | format-table Host, Name, PowerState -autosize > c:outputfile.txt

About the author:

Carlos has over 20 years of experience in different Information Technology positions for major Fortune 500 companies across the United States and Latin America. Through the years Carlos have served as a leadership trainer, motivational speaker, advisor, facilitator, architect, preacher, and teacher for organizations of various sizes in the United States, Puerto Rico, Dominican Republic, Brazil, Colombia, Mexico and Cuba.

  • Matthieu


    Thanks for your scripts. Can we use this export for your “removeVms” and Add inventory scripts?
    I’m currently searching to know how create the following file:
    #Import VM information
    $VMs = Import-Csv .vminformation.csv

    Thanks in advance.

    • cavarpe


Back to Top

%d bloggers like this: