devid79
Enthusiast
Enthusiast

List of al VMs with all fields

Jump to solution

Hello guys,

i need help to extract from my VCenter, with powercli script , all information like this :

Name

State

Uptime

NIC

PortGroup

  1. S.O.

IP

Host

Provisioned Space

Used Space

CPU

RAM

Reservation - RAM/CPU

VMDK / Datastore

Host CPU - MHz

Host Mem - MB

Notes

Fault Tolerance

Snapshot

VMWare Tools

NB_LAST_BACKUP

Tags

and send email on cvs and html format.

Please help me.

Thx

Davide

Tags (3)
41 Replies
LucD
Leadership
Leadership

My bad, I obviously forgot the script is using Get-View.
This should return all IP addresses in that case

$vms.IPAddress = $vm.Guest.Net.IpAddress -join ','


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

markshannon
Enthusiast
Enthusiast

worked like a charm - thankyou - stay safe

0 Kudos