Skip to content

Instantly share code, notes, and snippets.

@WilliamBerryiii
Created January 10, 2016 20:07
Show Gist options
  • Save WilliamBerryiii/0ef15deda29d462b7f34 to your computer and use it in GitHub Desktop.
Save WilliamBerryiii/0ef15deda29d462b7f34 to your computer and use it in GitHub Desktop.
Get NIC Link Speed in MB
Get-WmiObject -ComputerName localhost -Class Win32_NetworkAdapter |
Where-Object { $_.Speed -ne $null -and $_.MACAddress -ne $null } |
Select-Object -Property SystemName,Name,NetConnectionID`
,@{label="LinkSpeed(MB)";Expression={$_.Speed/1000000 -as [int]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment