I needed a quick list of all MAC addresses in our VMWare environment and threw together this PowerCLI script.
$LOG_FILE = "C:\machines.txt" $VI_SERVER = "your-virtual-center-server-here" Connect-VIServer $VI_SERVER get-vm | %{ $_ | select Name | out-file -filepath $LOG_FILE -append; $_ | Get-NetworkAdapter | out-file -filepath $LOG_FILE -append } |
Don Peterson
Thank you for your generosity of time and intellect in sharing your learnings on your website and making them available via search. I respect the time and effort needed to do this work and just want you to know that I appreciate it.
Don