VMware Cloud Community
Jelan
Enthusiast
Enthusiast

How to extract all VMs list from VC

HEllo,

How can we extract list of all the vms from vc through webclient or by powercli,

please help on this

refgards,

Jelan

0 Kudos
5 Replies
ChrisFD2
VMware Employee
VMware Employee

RVtools will do the job.

https://www.robware.net/rvtools/

Via PowerCLI just do get-vm once connected to the VC server.

Get-VM - vSphere PowerCLI Cmdlets Reference

Regards,
Chris
VCIX-DCV 2024 | VCIX-NV 2024 | vExpert 6x | CCNA R&S
0 Kudos
GayathriS
Expert
Expert

CHeck out this post which  has similar question and the script is working :

VMware PowerCLI Forum - VMware {code}

PowerCLI Script to list VMs by their hosts

Get-VM - vSphere PowerCLI Cmdlets Reference

Please consider marking this answer as correct and helpful if this helps you.

regards

Gayathri

0 Kudos
Jelan
Enthusiast
Enthusiast

need vm size and storage details where vm sits

0 Kudos
IRIX201110141
Champion
Champion

The answers from above are also valid for this question.  If you dont want do use powershell i highly recommend to take a look to RVtools. You can easily export it directly to MS Excel.

We use Williams old vSphere Healthcheck (perl based) to fetch the information.

2sec of Google:

Script VMware VM Inventory report with multiple details.

Regards,

Joerg

0 Kudos
ChrisFD2
VMware Employee
VMware Employee

Use RVtools which I already posted above. It will give you pretty much every bit of information you would ever need.

Regards,
Chris
VCIX-DCV 2024 | VCIX-NV 2024 | vExpert 6x | CCNA R&S
0 Kudos