As I explained in the article about ExtensionData each VM object has a lot of information stored. If you want to know the IP addresses of a particular VM you can use PowerCLI to get those properties.

You can get the IP addresses for VMs from within the virtual machine from the guest property:

if you use this on all VMs you get a list of IP addresses and not knowing which IP address belongs to which VM:

Since what we wanted was usable IP addresses we have to do something else/different:

This wil return the IP address, or if you have more IP addresses, like IPv6, you get an array with the IP addresses.

Or another way:

One VM

Multiple VMs

Results in:

Retrieving IP addresses for all VMs

This is useful if you want to create a list of all your VMs with corresponding IP addresses.


The list you get contains the name of the VM and all IP addresses that are known or recognized for the VM. Note that the VMs have to be powered on to retrieve the IP addresses.