NTDOCNTDOC Administrator
Registered: 2000-07-28
Posts: 11634
Loc: Space
Looked for a script to check the NIC Speed setting but could not find one so I wrote this one.
I attempted to use WMI but the returned data was blank for my test systems.
AutoSense: was blank
Speed: was blank
This script attempts to determine what the current Network card Speed settings are set to.
This appears to work for all those involved in coding/testing but may not work for all systems. If you do test the code and find that it does not function correctly please post with some details so that we can attempt to make the code better.
NOTE: Code was updated to now support more NIC cards and operate against remote computers if you fill in the $sComputer value with the name of a remote computer.
Original Code NTDOC
Contributors Thanks for the help in completing this script
Glenn Barnas - Debugging, Code ideas
Bryce - Code ideas
Shawn - Code ideas, Testing
Les - Testing
Al - Testing
Examples of output are:
Device Name: Broadcom 570x Gigabit Integrated Controller
Device Index: 0001
Speed Setting: Auto
Media Type: 0
Device Name: Broadcom NetXtreme Gigabit Ethernet for hp
Device Index: 0007
Speed Setting: Auto
Media Type: 0
Device Name: HP NC7770 Gigabit Server Adapter
Device Index: 0000
Speed Setting: 100 Mb Full
Media Type: 4102
Device Name: HP NC7770 Gigabit Server Adapter
Device Index: 0006
Speed Setting: 100 Mb Full
Media Type: 4102
Device Name: HP NC7781 Gigabit Server Adapter
Device Index: 0002
Speed Setting: Undetermined probably 1000 Full
Media Type: 8
Device Name: HP NC7781 Gigabit Server Adapter
Device Index: 0003
Speed Setting: Undetermined probably 1000 Full
Media Type: 8
Device Name: Intel(R) PRO/100 VM Network Connection
Device Index: 0002
Speed Setting: Auto Detect
Media Type: 0
Device Name: Intel(R) PRO/100+ Management Adapter
Device Index: 0007
Speed Setting: Auto Detect
Media Type: 0
Device Name: Linksys LNE100TX Fast Ethernet Adapter(LNE100TX v4)
Device Index: 0001
Speed Setting: AutoSense
Media Type: 0
Device Name: 3Com Gigabit LOM (3C940)
Device Index: 0010
Speed Setting: Auto
Media Type: Autoselect
Device Name: AMD PCNET Family PCI Ethernet Adapter
Device Index: 0001
Speed Setting: Auto Detect
Media Type: 0
Device Name: HP NC7770 Gigabit Server Adapter
Device Index: 0000
Speed Setting: 1000 Mb Full
Media Type: 8200