I need help to keep my PC (Windows 7) connected to the net. I've found out how to get back on the Net by changing my local area connection from disable to enable. But the connection switches back to disable after I startup or reboot my PC. Does anybody know what I have to do to keep the settings enable?
The solution involves writing a batch file to enable LAN and running it at system startup. Its not the best way. But, definitely better than having to go through reinstallations.
Step 1 - Get devcon
Download devcon.exe from here: http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe
Put the devcon.exe in same dir as batch file.
Step 2 - Obtain adapter name
Go to control panel > network and sharing center. Click on change adapter settings in left pane.
Locate the LAN connection with problem and note the adapter name.
It is something like
Alternatively, you can go to command prompt and use
Locate the LAN connection and note the "Description" for that. The description is nothing but adapter name.
Step 3 - the batch file
Now that you have adapter name, put it in this batch file:
Save as some abc.bat & test the batch file.
Syntax to use the batch is:
If it works, then schedule it to run at startup.