6 Replies Latest reply on Nov 13, 2017 5:07 AM by LucD

    Get List of IP addresses for each VM

    antoniogemelli Novice

      Hello,

      I have a script to get Ip address and vm name:

       

      Get-VM | Select Name,VMHost, @{N="IP Address";E={@($_.guest.IPAddress[0])}} |

      Export-Csv -NoTypeInformation C:\Users\gemela\Desktop\machine_ip.csv

       

      I get only one IP, I want to get also management ip and backup ip.

       

      Is possible? ideally will be nice to get all IP for each machine.

       

      Thanks