How to set the network adapter order from the command line.

You will notice that now matter how you install your operating system, the network adapters order is very likely to be wrong, usually with the wireless adapter at the top.

How to find out:
  • Open the Control Panel.
  • Open “Network and Sharing Center”.
  • On the left pane, click on “Change Adapter Settings”.
  • Press the Alt key on your keyboard then on the menu bar that appears, click Advanced > Advanced settings.
  • On the first tab, “Adapters and Bindings” check what connection is at the top.
Now, there’s a way to automate this for enterprise deployment: Hyper-V Network VSP Bind Application.
This utility is not intended to be used on client Operating Systems but indeed works great. All the info is here: http://code.msdn.microsoft.com/nvspbind
Simply copy the executable to a known location and execute the following command:
nvspbind /++ “Local Area Connection” *
Where /++ puts the adapter named “Local Area Connection” at the top for all protocols with *
Namaste.

Repair the TCP/IP stack in Windows.

Sometimes, the networking layer in Windows gets corrupted. Of course you don’t necessarily know why…
There are a few easy steps to fix it. The best one, in my opinion is a good old driver update which will not only reset the stack but will also bring you more stability. Check with your computer manufacturer/chipset vendor for that.

Alternatively or if you already have the best available driver (big up for staying up to date, here), you can issue a command to reset the TCP/IP stack:

  • In XP, from a command prompt, type the following: netsh int ip reset c:resetlog.txt
  • In Vista/7, from a command prompt with elevated privileges: netsh int ip reset
    (logging the results of the command is optional in Vista/7)

A reboot is recommended after as a few registry keys need to be regenerated.

Namaste.