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