21 Nov 2012

Find a Hyper-V VM by MAC Address

This simple but useful approach became very popular if I watch my blog hit stats. So here’s the final part for Hyper-V.

How to identify a virtual machine if you just know it’s MAC Address?

For SCVMM 2012 SP1

Get-SCVirtualNetworkAdapter -All | ? MACAddress -eq '00:50:56:AF:00:6D' | Select Name,MACAddress,VirtualNetWork

For Hyper-V Manager

Get-VM | Get-VMNetworkAdapter | ? MacAddress -eq '00155D640F05' | select VMName,MacAddress,IPAdd resses


Just to refer my recent posts…

Powershell one-liner to find XenServer guest by MAC address

Powershell one-liner to find vSphere guest by MAC address