Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $report =@()
- Get-VM | Get-View | %{
- $VMname = $_.Name
- $_.guest.net | where {$_.MacAddress -eq "00:50:56:4b:29:33"} | %{
- $row = "" | Select VM, MAC
- $row.VM = $VMname
- $row.MAC = $_.MacAddress
- $report += $row
- }
- }
- $report
- # I've copied it from http://www.vmwareadmins.com/how-to-find-virtual-machine-name-from-the-mac-address-using-powercli/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement