Created
January 11, 2016 14:24
-
-
Save vmwarecode/a687c875ff4c1b240f06 to your computer and use it in GitHub Desktop.
Get ESXi Host ip from VM perspective
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-VM | Select Name, id, @{Name="IP"; Expression={$_.VMHost | Get-VMHostNetwork | Select -ExpandProperty VirtualNic | where {$_.PortGroupName -match "dvpgManagement"} | Select IP}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment