Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Oct 31st, 2013  |  syntax: Power Shell  |  size: 0.44 KB  |  hits: 115  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $tested_computers = @()
  2. foreach ($computer in (Get-ADComputer -Filter '*' | Select -Expand Name))
  3. {
  4.         if($computer -and (Test-Connection -Cn $computer -BufferSize 16 -Count 1 -ea 0 -quiet))
  5.         {
  6.                 $tested_computers += $computer
  7.         }
  8. }
  9.  
  10. Get-WmiObject -ComputerName $tested_computers -Class Win32_NetworkAdapter | `
  11. Where-Object { $_.Speed -ne $null -and $_.MACAddress -ne $null } | `
  12. Format-Table -Property SystemName,Name,NetConnectionID,Speed