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"
Discussion moved from vCenter Server Appliance to VMware PowerCLI
Try like this
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