Find VM based MAC Address

Recently, I should have found a virtual machine on my VMware infrastructures, for some reason I couldn’t find it by name or IP, machine was down, the only clue comes from my monitor system which has instructed me that this machine is down and stated me the MAC address of that virtual machine, consequently, I would like to share my steps In a case that you are looking for VM that the OS and VM names are different, which clearly can be made by mistake.

If you can find the machine MAC address and then find it on Vcenter.

Install-Module -Name VMware.PowerCLI -RequiredVersion 6.5.4.7155375
Import-Module VMware.VimAutomation.Core
Connect-VIServer -Server <IP/FQDN> -Protocol https -User <username> -Password <password>
Get-VM | Get-NetworkAdapter | Where {$_.MacAddress -eq “00:0c:29:a0:cf:46”} | Select-Object Parent,Name,MacAddress