[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Add bulk of VMs to vCenter Inventory

Posted on 2013-11-15
8
Medium Priority
?
460 Views
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
0
Comment
Question by:Doors75
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 123
ID: 39652112
These VMS are currently not assigned or registered to any host?

This would have to be scripted.
0
 

Author Comment

by:Doors75
ID: 39652127
yes, they are not in the inventory,
0
 
LVL 123

Accepted Solution

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

http://cavarpe.wordpress.com/2011/06/17/vsphere-inventory-import-script/

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

https://communities.vmware.com/thread/419531
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

Author Comment

by:Doors75
ID: 39652186
they reference the folder name, which I dont have, all my VMs sit on directly under the LUN
0
 
LVL 123
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?
0
 

Author Closing Comment

by:Doors75
ID: 39655431
I figured it out, thanks
0
 

Author Comment

by:Doors75
ID: 39655432
Thanks
0
 

Author Comment

by:Doors75
ID: 39655433
Thanks
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

656 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