With the help of PowerShell, you can quickly find out the IP address used by your virtual machines on Hyper-V. The following are the steps for this.
Note: The steps below will work if the integration service is installed on all your virtual machines. If any of the Virtual Machines is stopped on your Hyper-V, you can't get the IP Address of the same machine.
Step 1: Open PowerShell (Run as administrator) and enter the command below.
# Get-VM | Get-Member
Step 2: Select the Network Adaptors with the following command.
# Get-VM | Select-Object NetworkAdapters
Step 3: Select a few other components like IP Address, VM name, etc. This will show the IP address and name of the virtual machine.
# Get-VM | Select-Object NetworkAdapters | Select-Object VMName, IPAddresses, switchName
Step 4: If you would like to get the details of the order, including the virtual machine name, IP address, and name.
# Get-VM | Get-VMNetworkAdapter | ft VMName, IPAddresses, switchName
