How to check network adapter speed installed on a computer
using PowerShell?
Code snippet below will get the name of all the network
adapter installed on a computer and also the speed.
To use the script on a remote computer supply the computer
name and run the script with appropriate privileges to get the data on the
remote computer.
#===========================
$computer_name="."
$Net_adapter=gwmi -class Win32_NetworkAdapter
-namespace "root\CIMV2"
` -computername $computer_name
foreach ($objItem
in $Net_adapter)
{
"Adapter is: " + $objItem.name + " -- " +
"Adapter Speed is: " + [math]::truncate($objItem.speed/ 1MB) + " MB"
}
#===========================
Change the 1MB to 1GB if you need the output in GB.
Sample Output:
Adapter is: Teredo Tunneling Pseudo-Interface -- Adapter
Speed is: 0 MB
Adapter is: Microsoft ISATAP Adapter #3 -- Adapter Speed is:
0 MB
Adapter is: VMware Virtual Ethernet Adapter for VMnet1 --
Adapter Speed is: 95 MB
Adapter is: VMware Virtual Ethernet Adapter for VMnet8 --
Adapter Speed is: 95 MB
Adapter is: Microsoft ISATAP Adapter #4 -- Adapter Speed is:
0 MB
Adapter is: VirtualBox Host-Only Ethernet Adapter -- Adapter
Speed is: 95 MB
Adapter is: Atheros AR9285 Wireless Network Adapter --
Adapter Speed is: 92 MB
Adapter is: Qualcomm Atheros AR8152 PCI-E Fast Ethernet
Controller (NDIS 6.30) -- Adapter Speed is: 8796093022208 MB
Adapter is: Bluetooth Device (RFCOMM Protocol TDI) -- Adapter
Speed is: 0 MB
Adapter is: Bluetooth Device (Personal Area Network) --
Adapter Speed is: 2 MB
Adapter is: Microsoft Hosted Network Virtual Adapter --
Adapter Speed is: 8796093022208 MB
Adapter is: Microsoft ISATAP Adapter -- Adapter Speed is: 0
MB
Adapter is: WAN Miniport (SSTP) -- Adapter Speed is: 0 MB
Comments
Post a Comment