Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Script to disable and re-enable my Ethernet port.?
The Ethernet port on my Windows 8.1 desktop occasionally freezes, and I have to disable it in Network and Sharing Center, then re-enable it in Device Manager. Are there any command line commands I can script so that I can unfreeze the port from just one mouse click?
Thanks, Michael C. I have checked on available drivers, and it is currently running the latest driver from the PC manufacturer. I will see if the chip supplier has a later driver.
Mac, its not a sleep problem. It appears to be some sort of hardware or driver issue.
I have changed from using a static address for the Ethernet port to using the same addressed but reserved in the router. The port now gets set up by DHCP from the router, and so far the problem has disappeared.
2 Answers
- AsherLv 46 years agoFavorite Answer
I would check if there is any reason for this, and try to fix it.. As you asked for a script..
Its pretty easy.. here it goes..
1. Open command prompt as adminstrator..
it should say c:\windows\system32..
2. Type "netsh interface show interface"
it will show your connections..Note the interface name.. In my pc, it says "Ethernet" ... Ignore the quotes..
3. Type "netsh interface set interface "Ethernet" Disable" to disable
4. Type "netsh interface set interface "Ethernet" Enable" to enable.
Now.. you need to put these lines into a batch file..
1.create a new text document, and open it..
2. add these three lines
netsh interface set interface "Ethernet" Disable
PAUSE
netsh interface set interface "Ethernet" Enable
3. Save it as filename.bat
4.goto file properties and check run always as adminstrator..
5.click the file and you are done..
I used PAUSE, so that it waits for you to hit a key, removing that statement will not wait for key.. you can use SLEEP 5 to wait 5 seconds,if there is a delay needed between disable and enable ..