Pages: [1]
Print
Author Topic: find name of vm that you can only find the mac to  (Read 800 times)
esarakaitis
Administrator
Sr. Member
*****
Posts: 256


8223109 sack57@hotmail.com littleking57 rootinfortwayne
View Profile WWW Email
« on: June 29, 2009, 09:02:36 AM »

Code:
$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
« Last Edit: June 29, 2009, 09:16:37 AM by esarakaitis » Logged
Pages: [1]
Print
Jump to: