All Forums >> [Scripting] >> Post a VBScript >> Set NIC Speed to Auto on popular NICs Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
We are in the process of upgrading our LAN to 100 mb/s. As a result the network team have asked me to ensure that the NICs on all client machines are set to "Auto" for the speed and duplex settings.
Given that we have several different NICs in existence, this proved tricky. Anyway, this is the script I've been using.
It reads in a list of machines from a c:\temp\input.txt although you could just as easily get a list of machines from AD and parse that instead. It should handle most popular NICs although there might be some weird and wonderful ones out there that it can't handle. If so, you will need to find out the relevant key that sets the "Auto" setting and also the name of the NIC under System\Currentcontrolset\Control\Class\{4D36E972-E325-11CE-BFC1-08002be10318} and add an appropriate Case statement.
Oh, in case you were wondering why I do this
It's just to check that the value was REALLY changed. Perhaps a bit of overkill but I want to 100% certain it's worked ;)