If you use Hyper-V like a remote server and use ssh to access it. Thus when your VM used vEthernet (Default Switch)(or another switch) and operating system weren't Microsoft Windows, that to know the IP address of VM is an inconvenient thing.
The Hyper-V module provided some useful command, and use Windows utility program combinedly can know the IP of the running virtual machines。
Usage
- Please make sure you are installed the Hyper-V Completely.
- Please make sure you are in Hyper-V administrator user group.
- Install the module.
- Import this module and enjoy it.
Example
C:\ Get-VMNetworkInformation
Name IP MACAddress
---- -- ----------
Alpine 172.17.118.196 00-36-36-36-36-36