I'm looking for a PowerCLI script that helps to determine the Hardware address of vms which can be grabed from a input file. Please help.
Do you mean the MAC address with "hardware address"?
What can be grabbed from an input file? The VM names or the MAC addresses?
In what format is the input file? A CSV, a TXT... file?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try like this
Get-VM -Name $vmNames | Get-NetworkAdapter |
Select @{N = 'VM'; E = { $_.Parent.Name } }, MacAddress
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference