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

Subscribe For Latest Updates

Sign up for best of digital marketing, livestream and technology opinions on what matters to you.

Invalid email address
We promise not to spam you. You can unsubscribe at any time.

2 thoughts on “vCenter Inventory via PowerShell”

  1. 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.

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: