VMware Cloud Community
Darren201110141
Contributor
Contributor

Get-VMGuestNetworkInterface Multiple IPs

Hi

I have been enumerating VM network settings using Get-VMGuestNetworkInterface and have noticed that if a NIC has more than one ip assigned to it only the first one is returned. Is there anything I can do to get round this problem?

My intention is to use set-vmguestnetworkinterface to make required changes but I need to allow for instances of multiple ips on any given VMs nic.

Thanks

Darren

0 Kudos
1 Reply
LucD
Leadership
Leadership

Did you already try to send the ïpconfig /all" command to the guest OS through the Invoke-VMScript ?

That way you get the complete output back, and you can analyse/extract the info in your script.


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

0 Kudos