PowerCLI Notes Get VM Name from MAC Address

PowerCLI Notes

I was looking to see if a particular server still existed. It had an app licensed by MAC address. This little line of code helped me to find the MAC did not exist. So I built a new VM and gave it this MAC and re installed the app.
~~~~~
Connect-VIServer VSPHERE01

Get-VM | Get-NetworkAdapter | Where {$_.MacAddress -eq ā€œ00:50:56:9B:29:1Cā€} | Format-List

Comments

Popular posts from this blog

Going old school with CommVault Simpana Data Interface Pairs