概要 如果您在“本地連接”屬性中顯示的此連接使用下列項目列表中單擊 Internet 協(xié)議(TCP/IP) 項,您將發(fā)現(xiàn)卸載按鈕不可用(被禁用)。這是因為傳輸控制協(xié)議/Internet協(xié)議 (TCP/IP) 堆棧是 Microsoft Windows Server 2003 的核心組件,不能刪除。
在有些情況下,可能需要重新安裝 TCP/IP 以使 TCP/IP 堆;謴(fù)為原始狀態(tài)?梢允褂 NetShell 實用程序重置 TCP/IP 堆棧,使其恢復(fù)到初次安裝xx作系統(tǒng)時的狀態(tài)。 更多信息 NetShell 實用程序 (netsh) 是一個命令行腳本編寫工具,您可以使用此實用程序配置 并監(jiān)視 Windows Server 2003 聯(lián)網(wǎng)。此工具提供了交互式網(wǎng)絡(luò)外殼程序接口。
您可以使用該實用程序的 Internet 協(xié)議 (IP) 上下文中的 reset 命令重寫以下與 TCP/IP 相關(guān)的注冊表項: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ SYSTEM\CurrentControlSet\Services\DHCP\Parameters\ 運行此命令的結(jié)果與刪除并重新安裝 TCP/IP 協(xié)議的效果相同。 命令語法 netsh int ip reset [log_file_name]
要使用netsh 命令重置 TCP/IP 堆棧,您必須指定記錄命令結(jié)果的日志文件的名稱。如果輸入了本文“命令示例”一節(jié)中介紹的任一命令,當(dāng)前計算機中的 TCP/IP 堆棧將被重置,且該xx作的活動將被記錄到命令行中指定的 Resetlog.txt 文件。在第一個示例中,日志文件被創(chuàng)建在當(dāng)前文件夾中;在第二個示例中,則指定了 Resetlog.txt 日志 文件的完整路徑。
備注:如果該文件的名稱與目標文件夾中的現(xiàn)有日志文件的名稱相同,則會將新日志文件的信息附加到現(xiàn)有文件的結(jié)尾處。 命令示例 下面的示例說明了如何使用netsh 命令重置 TCP/IP 協(xié)議堆棧。 示例 1 單擊開始,然后單擊運行。 在打開框中鍵入 cmd,然后單擊確定。 在命令提示符后鍵入以下命令,然后按 ENTER 鍵: netsh int ip reset resetlog.txt
備注:在上面的命令中,“int”是 interface 命令的縮寫形式。 鍵入 exit,然后按 ENTER 鍵。 示例 2 單擊開始,然后單擊運行。 在打開框中鍵入 cmd,然后單擊確定。 在命令提示符后鍵入以下命令,然后按 ENTER 鍵: netsh int ip reset c:\resetlog.txt
鍵入 exit,然后按 ENTER 鍵。 要查看有關(guān)命令的幫助,請鍵入空格,然后鍵入 ?。即會顯示有關(guān)netsh 命令子上下文中可用命令的其他幫助。例如,要查看上一節(jié)中介紹的netsh 命令,應(yīng)在命令提示符后 鍵入以下命令: 鍵入 netsh ?,然后按 ENTER 鍵。 鍵入 netsh int ?,然后按 ENTER 鍵。 鍵入 netsh int ip ?,然后按 ENTER 鍵。 鍵入 netsh int ip reset ?,然后按 ENTER 鍵。 NETSH INT IP RESET 的日志文件示例 以下本文是一個日志文件的示例,該日志文件是由運行ip reset 命令后的netsh 生成的 。根據(jù)發(fā)出命令的計算機上不同的配置,實際的日志文件也會有所不同。通常,如果沒有替換 TCP/IP 注冊表項的原始配置,則不會在文件中記錄任何xx作。 reset SYSTEM\CurrentControlSet\Services\Dhcp\Parameters\Options\15\RegLocation 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_{2DDD011E -B1B6-4886-87AC-B4E72693D10C}\NetbiosOptions added SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BAA9D128 -54BB-43F6-8922-313D537BE03E}\NetbiosOptions reset SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BD2859BA -B26A-4E2B-A3FE-3D246F90A81A}\NameServerList old REG_MULTI_SZ = 10.1.1.2
deleted SYSTEM\CurrentControlSet\Services\Netbt\Parameters\EnableLmhosts added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\AddressType added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DefaultGatewayMetric added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DisableDynamicUpdate deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DontAddDefaultGateway reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\EnableDhcp old REG_DWORD = 0
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\NameServer added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\RawIpAllowedProtocols added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\TcpAllowedPorts added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\UdpAllowedPorts added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\DisableDynamicUpdate reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\EnableDhcp old REG_DWORD = 0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\IpAddress old REG_MULTI_SZ = 12.12.12.12
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\IpAutoconfigurationAddress deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\IpAutoconfigurationMask deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\IpAutoconfigurationSeed reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\RawIpAllowedProtocols old REG_MULTI_SZ = 0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\SubnetMask old REG_MULTI_SZ = 255.255.255.0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\TcpAllowedPorts old REG_MULTI_SZ = 0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9- 4936-B991-04DA31024C4E}\UdpAllowedPorts old REG_MULTI_SZ = 0
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\AddressType added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\DefaultGatewayMetric added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\DisableDynamicUpdate deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\DontAddDefaultGateway reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\EnableDhcp old REG_DWORD = 0
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\NameServer added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\RawIpAllowedProtocols added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\TcpAllowedPorts added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\UdpAllowedPorts reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\DefaultGateway old REG_MULTI_SZ = 10.1.1.2
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\DefaultGatewayMetric old REG_MULTI_SZ = 0
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\DisableDynamicUpdate reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\EnableDhcp old REG_DWORD = 0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAddress old REG_MULTI_SZ = 10.1.1.1
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAutoconfigurationAddress deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAutoconfigurationMask deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAutoconfigurationSeed reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\NameServer old REG_SZ = 10.1.1.2,10.1.1.3
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\RawIpAllowedProtocols old REG_MULTI_SZ = 0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\SubnetMask old REG_MULTI_SZ = 255.255.255.0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\TcpAllowedPortsold REG_MULTI_SZ = 0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\UdpAllowedPortsold REG_MULTI_SZ =0
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DontAddDefaultGatewayDefault deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableIcmpRedirect deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableSecurityFilters deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchList deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\UseDomainNameDevolution
出處:藍色理想
責(zé)任編輯:劍氣凌人
上一頁 在工作組設(shè)置中的Win2003上將本地策略應(yīng)用于除管理員以外的所有用戶 下一頁 如何在運行 Sysprep 時在Win2003中添加自定義用戶設(shè)置
|