$report =@()
Get-VM -name tech-jockey* | Get-View | %{
$VMname = $_.Name
$_.guest.net | where {$_.MacAddress -eq "00:88:56:ca:77:78"} | %{
$row = "" | Select VM, MAC
$row.VM = $VMname
$row.MAC = $_.MacAddress
$report += $row
}
}
$report
Get-VM -name tech-jockey* | Get-View | %{
$VMname = $_.Name
$_.guest.net | where {$_.MacAddress -eq "00:88:56:ca:77:78"} | %{
$row = "" | Select VM, MAC
$row.VM = $VMname
$row.MAC = $_.MacAddress
$report += $row
}
}
$report
No comments:
Post a Comment
Thanks for showing interest in tech-jockey.