JSI Tip 6910. How do I re-install TCP/IP in Windows Server 2003?
June 30, 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_MACHINESYSTEMCurrentControlSetServicesTcpipParameters and HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesDHCPParameters 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 SYSTEMCurrentControlSetServicesDhcpParametersOptions15RegLocation old REG_MULTI_SZ = SYSTEMCurrentControlSetServicesTcpipParametersInterfaces?DhcpDomain SYSTEMCurrentControlSetServicesTcpIpParametersDhcpDomainadded SYSTEMCurrentControlSetServicesNetbtParametersInterfacesTcpip_{2DDD011E-B1B6-4886-87AC-B4E72693D10C}NetbiosOptionsadded SYSTEMCurrentControlSetServicesNetbtParametersInterfacesTcpip_{BAA9D128-54BB-43F6-8922-313D537BE03E}NetbiosOptionsreset SYSTEMCurrentControlSetServicesNetbtParametersInterfacesTcpip_{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}NameServerList old REG_MULTI_SZ = 10.1.1.2deleted SYSTEMCurrentControlSetServicesNetbtParametersEnableLmhostsadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}AddressTypeadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}DefaultGatewayMetricadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}DisableDynamicUpdatedeleted SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}DontAddDefaultGatewayreset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}EnableDhcp old REG_DWORD = 0added SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}NameServeradded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}RawIpAllowedProtocolsadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}TcpAllowedPortsadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}UdpAllowedPortsadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}DisableDynamicUpdatereset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}EnableDhcp old REG_DWORD = 0reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}IpAddress old REG_MULTI_SZ = 12.12.12.12deleted SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}IpAutoconfigurationAddressdeleted SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}IpAutoconfigurationMaskdeleted SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}IpAutoconfigurationSeedreset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}RawIpAllowedProtocols old REG_MULTI_SZ = 0reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}SubnetMask old REG_MULTI_SZ = 255.255.255.0reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}TcpAllowedPorts old REG_MULTI_SZ = 0reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}UdpAllowedPorts old REG_MULTI_SZ = 0added SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}AddressTypeadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}DefaultGatewayMetricadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}DisableDynamicUpdatedeleted SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}DontAddDefaultGatewayreset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}EnableDhcp old REG_DWORD = 0added SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}NameServeradded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}RawIpAllowedProtocolsadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}TcpAllowedPortsadded SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}UdpAllowedPortsreset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}DefaultGateway old REG_MULTI_SZ = 10.1.1.2 reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}DefaultGatewayMetric old REG_MULTI_SZ = 0 added SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}DisableDynamicUpdatereset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}EnableDhcp old REG_DWORD = 0reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}IpAddress old REG_MULTI_SZ = 10.1.1.1 deleted SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}IpAutoconfigurationAddressdeleted SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}IpAutoconfigurationMaskdeleted SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}IpAutoconfigurationSeedreset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}NameServer old REG_SZ = 10.1.1.2,10.1.1.3reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}RawIpAllowedProtocols old REG_MULTI_SZ = 0reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}SubnetMask old REG_MULTI_SZ = 255.255.255.0 reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}TcpAllowedPorts old REG_MULTI_SZ = 0reset SYSTEMCurrentControlSetServicesTcpipParametersInterfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}UdpAllowedPorts old REG_MULTI_SZ = 0deleted SYSTEMCurrentControlSetServicesTcpipParametersDontAddDefaultGatewayDefaultdeleted SYSTEMCurrentControlSetServicesTcpipParametersEnableIcmpRedirectdeleted SYSTEMCurrentControlSetServicesTcpipParametersEnableSecurityFiltersdeleted SYSTEMCurrentControlSetServicesTcpipParametersSearchListdeleted SYSTEMCurrentControlSetServicesTcpipParametersUseDomainNameDevolution
About the Author
You May Also Like