Add bulk of VMs to vCenter Inventory

Posted on 2013-11-15
Last Modified: 2013-11-17
How can I add a bulk of VMs to vCenter inventory? they sit on a datastore t, I search and I found couple of scripts that uses VM folder, in my case i have the VMs set on the LUN or the datastore directly , but the script, powerCLI,  keep referencing VMfolder which I dont have. Please help
Question by:Doors75
  • 5
  • 3
LVL 117
ID: 39652112
These VMS are currently not assigned or registered to any host?

This would have to be scripted.

Author Comment

ID: 39652127
yes, they are not in the inventory,
LVL 117

Accepted Solution

Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 39652155
this script will allow you to add them from a csv file to the inventory

LuCDs script here is probably a better one, as he is the king of PowerCLI

Author Comment

ID: 39652186
they reference the folder name, which I dont have, all my VMs sit on directly under the LUN
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

LVL 117
ID: 39652679
so all VMs are together with no folder?

it is usual and recommend to have a folder for each VM?

where have the VMs come from to be like this?

Author Closing Comment

ID: 39655431
I figured it out, thanks

Author Comment

ID: 39655432

Author Comment

ID: 39655433

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

One of the new features of a version 7.0 or later virtual machine, supported in VMware vSphere 4.1, 5.0 or the VMware vSphere Hypervisor ESXi 4.1, ESXi 5.0 often overlooked by VMware Administrators is the ability to add and connect USB devices conne…
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now