JSI Tip 6910. How do I re-install TCP/IP in Windows Server 2003?

If you examine the the Properties of the Local Area Connection and select Internet Protocol (TCP/IP), the Uninstall button is dimmed, because TCP/IP is a core component of Windows Server 2003 and cannot be removed.

Microsoft provides the Netsh.exe tool to configure and monitor Windows Server 2003 networking.

If you issue the reset command in the Internet Protocol (IP) context, it will rewrite the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters and HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCP\Parameters keys, just as if you had removed and re-installed the TCP/IP protocol.

The reset command to 're-install' the TCP/IP protocol is:

netsh int ip reset logfile.txt

where:

int mean interface,
ip mean Internet Protocol,
reset means rewrite the regisitry keys to their installation values, and
logfile.txt     is the path to a log file that will record the results.

NOTE: You can issue the command from a CMD.EXE prompt or batch file.

NOTE: If logfile.txt exists, the data will be appended to the existing file.

NOTE: If the registry keys have NOT been altered, the log file may be empty. The log file content is dependent upon the configuration of your computer.

NOTE: To view help for the netsh command, the following are valid:

          netsh ?
          netsh int ?
          netsh int ip ?
          netsh int ip reset ?
The following log file is an example from running the netsh int ip reset logfile.txt command:
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\}\TcpAllowedPorts
            old REG_MULTI_SZ = 0

reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A\}\UdpAllowedPorts
            old 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



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish