Getting a quick overview of networking in Hyper-V

Getting a quick overview of networking in Hyper-V

Rate This
  • Comments 2

A little while ago I talked about how Hyper-V in Windows 8 / Windows Server 2012 allowed you to see the IP address of a virtual machine through Hyper-V Manager.

Well, with the release preview / release candidate build you can now take this a step further and use PowerShell to get a quick overview of how IP addresses are configured for an entire Hyper-V server:


With the following command:

Get-VM | Get-VMNetworkAdapter | ft VMName, MacAddress, IPAddresses

Or for multiple Hyper-V servers:


With this command:

Get-VM -ComputerName benarm-alpha, benarm-beta | Get-VMNetworkAdapter | ft ComputerName, VMName, MacAddress, IPAddresses

(where benarm-alpha and benarm-beta are the names of the servers I was looking at)

This is very handy when you are trying to get an “all up” view of networking on your system.


P.S. Yes – something is wrong with my DHCP server and it is not giving out leases to all of my virtual machines, which is why I was running these commands.  It is also why some of my virtual machines currently have 169.254.x.x addresses Sad smile

Leave a Comment
  • Please add 1 and 3 and type the answer here:
  • Post
  • Hey Ben, is this something that is exposed in VMM 2012?

  • I've been trying to get this to work on different builds of 2012 and 8. The IP address shows in the HyperV console, but does not return in the PowerShell.

    Should this work in build 8400?

Page 1 of 1 (2 items)