How to fix network connection dead on startup, but okay after disable/enable?

I had this issue on a friends machine. Seems to be a problem with some Windows 7 installs. The only "fix" I could come up with was to create a batch file with the following:

netsh interface set interface "Local Area Connection" disabled
netsh interface set interface "Local Area Connection" enabled

And have it run on Windows startup. (Replace the "Local Area Connection" with the name of the interface you want to disable/enable)

A little hacky, but it worked.


This worked like a charm. Problem SOLVED! No need to anymore disable/enable the Network Adapter.

It seems there's some Apple installed sevice called Bonjour, used with iTunes, or some special features with CS3 (the suite with Dreamweaver, etc.). If you are NOT using Bonjour, get rid of it by doing this:

1) Open File Explorer and Search for Bonjour, very likely in the C: Disk.

2) Locate the folder where Bonjour is. You should have 2 files there: "mDNSResponder.exe" and "mdnsNSP.dll".

3) Go to the Window Start button, look in "Accesories" for the "Command Prompt", the black little box to write things in DOS.

4) Right Click into it, and chose "Run as Administrator", and then click Yes in the next Dialog Box.

5) Do CD (change directory until you are Inside the Bonjour Directory). You should see at the prompt something like "C:\Program Files\Bonjour>".

6) Now type: mDNSResponder.exe -remove

7) You'll get some answer saying it was done OK.

8) Now type: regsvr32 /u mdnsNSP.dll

9) This will unregister the Bonjour DLL. If you do not understand what this means, never mind.

10) Restart your computer, and once it's up, remove completely the Bonjour directory.

11) By now you should see the icon of the Network connection fully up and running, and it'll stay that way every time you start up Windows.

Credit goes to: " http://www.thewindowsclub.com/remove-bonjour-from-windows "


The way I see it, it works like this:

  1. Boot up windows, it sees "Network" Which is not actually the correct network, but its default imaginary network that it enrolls in, even when there's no cable plugged in.

  2. I power cycle my router (unplug, replug) briefly, just as long as it takes to unplug-replug the power in.

  3. Windows then comes up with "Network 2" as my default network and joins the internet and network.

  4. When I shut down, it immediately forgets that network exists, and defaults back to its imaginary "Network" to again annoy me for no reason at boot-up.

Minding you this is on a fixed cable, with my wireless card disabled completely.

I have no permanent solution, I have to just power cycle my router every single time. Disabling and re-enabling the network doesn't fix it for me.

Hope this helps someone FINALLY find a REAL solution to this. This junk has been happening since day one with Win7.