Created
January 10, 2016 20:07
-
-
Save WilliamBerryiii/0ef15deda29d462b7f34 to your computer and use it in GitHub Desktop.
Get NIC Link Speed in MB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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