Friday, 24 August 2018

vSphere: Find VM by MAC Address

While trawling through event logs on a Windows server I encountered the following error;


The system detected an address conflict for IP address x.x.x.x with the system having network hardware address 00-50-56-xx-xx-xx. Network operations on this system may be disrupted as a result

Knowing that 00-50-56 is a VMware MAC Address I used PowerShell to search for the network adaptor with that MAC assigned;


Get-VM | Get-NetworkAdapter | Where {$_.MacAddress -eq “00:50:56:xx:xx:xx”} | fl

 The "Parent" in the resulting output is the VM name