VMware Cloud Community
Siri01
Contributor
Contributor

vCenter Infrastructure inventory

Hi All,

I need a automation script where I can pull-out the vCenter inventory from all ESXi Servers and respected VM's  like "IP, HostName, Ram, HardDisk Size, CPU,  OS name and version, for all the VMs in the vCenter"

0 Kudos
2 Replies
a_p_
Leadership
Leadership

0 Kudos
LucD
Leadership
Leadership

Try like this

Get-VM |

Select Name,@{N='VMHost';E={$_.VMHost.Name}},

  MemoryGB,NumCpu,UsedSpaceGB,

  @{N='IP';E={$_.Guest.IPAddress -join '|'}},

  @{N='OS';E={$_.Guest.OSFullName}},

  Version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos