Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

That info is coming from the Guest OS, so it is not available for all operating systems.
For most Windows OS, and provided VMware Tools are running, you can do

Get-VM |
Select-Object Name, @{N = 'DNSServers'; E = { $_.ExtensionData.Guest.Net.dnsconfig.ipaddress -join '|'}}


To have this info for types of Guest OS, you could consider running a Guest OS native script

 


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

View solution in original post

Reply
0 Kudos