vCenter Inventory via PowerShell

vCenter Inventory via PowerShell

2 Comments

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.

2 Comments

  1. Matthieu  - August 19, 2013 - 9:04 am
    Reply /

    Hi,

    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.

Leave a Reply

Back to Top

%d bloggers like this: