使用 netsh 重新設定網路設定

有時候使用 command 變更網路 IP ,造成無法再取得原來的 IP 或無法順利連線.
這時只能重設 TCP/IP 堆疊 來修復.

netsh interface ip reset

上面的指令會重新寫入兩個由 TCP/IP 堆疊 使用的機碼:

SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
SYSTEM\CurrentControlSet\Services\DHCP\Parameters\

若需要 log 則使用:

netsh interface ip reset %USERPROFILE%\reset.log