概要
如果您在
在有些情況下
NetShell實用程序(netsh)是一個命令行腳本編寫工具
您可以使用該實用程序的Internet協議(IP)上下文中的reset命令重寫以下與TCP/IP相關的注冊表項
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
SYSTEM\CurrentControlSet\Services\DHCP\Parameters\
運行此命令的結果與刪除並重新安裝 TCP/IP 協議的效果相同
命令語法
netsh int ip reset [log_file_name]
要使用netsh 命令重置 TCP/IP 堆棧
備注
命令示例
下面的示例說明了如何使用netsh 命令重置 TCP/IP 協議堆棧
示例
單擊開始
在打開框中鍵入 cmd
在命令提示符後鍵入以下命令
netsh int ip reset resetlog
備注
鍵入 exit
示例
單擊開始
在打開框中鍵入 cmd
在命令提示符後鍵入以下命令
netsh int ip reset c:\resetlog
鍵入 exit
要查看有關命令的幫助
鍵入 netsh ?
鍵入 netsh int ?
鍵入 netsh int ip ?
鍵入 netsh int ip reset ?
NETSH INT IP RESET 的日志文件示例
以下是一個日志文件的示例
resetSYSTEM\CurrentControlSet\Services\Dhcp\Parameters\Options\
old REG_MULTI_SZ =
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\?\DhcpDomain
SYSTEM\CurrentControlSet\Services\TcpIp\Parameters\DhcpDomain
added
SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{
added
SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BAA
reset
SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BD
old REG_MULTI_SZ =
deleted SYSTEM\CurrentControlSet\Services\Netbt\Parameters\EnableLmhosts
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
deleted
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
reset
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
old REG_DWORD =
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
reset
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
old REG_DWORD =
reset
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
old REG_MULTI_SZ =
deleted
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
deleted
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
deleted
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
reset
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
old REG_MULTI_SZ =
reset
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
old REG_MULTI_SZ =
reset
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
old REG_MULTI_SZ =
reset
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{
old REG_MULTI_SZ =
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA
deleted
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA
reset
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA
old REG_DWORD =
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA
added
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA
From:http://tw.wingwit.com/Article/os/youhua/201311/10712.html