Yahoo 知識+ 將於 2021 年 5 月 4 日 (美國東岸時間) 停止服務,而 Yahoo 知識+ 網站現已轉為僅限瀏覽模式。其他 Yahoo 資產或服務,或你的 Yahoo 帳戶將不會有任何變更。你可以在此服務中心網頁進一步了解 Yahoo 知識+ 停止服務的事宜,以及了解如何下載你的資料。

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.

更新 2:

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 個解答

相關度
  • Asher
    Lv 4
    6 年前
    最愛解答

    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 ..

  • 6 年前

    Check in Devices if u are allowing it to go to sleep to save power.

還有問題嗎?立即提問即可得到解答。