- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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