Microsoft KB Archive/299451

From BetaArchive Wiki

Article ID: 299451

Article Last Modified on 11/1/2006



APPLIES TO

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server



This article was previously published under Q299451


IN THIS TASK

SUMMARY Requirements

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry


SUMMARY

This article describes how to remove and reinstall TCP/IP on a Windows 2000 domain controller.
When you troubleshoot an issue, you may suspect that a TCP/IP-related component is either corrupted or damaged, which may or may not include registry problems. To resolve your difficulties, you may try to remove TCP/IP and all related components, including registry entries, but you may find that you cannot continue because the computer is a Windows 2000 domain controller. The following procedure describes how to remove and reinstall TCP/IP on a Windows 2000 domain controller.

Note: You must consider the following procedure only when all other troubleshooting is unsuccessful in resolving the issue. If you use this procedure, it is strongly recommended that you back up your whole computer. Although this procedure has been successfully implemented on many occasions on other computers, it is possible that in certain circumstances this procedure may cause undesirable effects upon your computer.

Also, Microsoft recommends that you read this whole procedure before you start so that you have a clear understanding of the procedure.

back to the top

Requirements

Before you start the procedure, you must have the following items available:

  • Your Windows 2000 CD-ROM.
  • Detailed configuration information that can allow you to set up TCP/IP and other network components.
  • The drivers for your network adapters if drivers other than those provided with Windows 2000 have been used.

Note: This procedure does not delete databases that have been created by Windows Internet Name Service (WINS) and Dynamic Host Configuration Protocol (DHCP). After you use this procedure, your existing WINS and DHCP databases must still be intact. Any scopes and options that are configured in DHCP must be re-created, but the existing database of leases can remain as-is. Additionally, any shares you may have created on the computer are lost. You must re-create those shares after you complete this procedure.

back to the top

Remove Network Components

  1. Start the computer into the Directory Services Restore mode. This step can be achieved if you press the F8 key as soon as the status bar appears at the bottom of the screen during the start process (the words "Starting Windows" appear above the status bar). From the list of options, click Directory Services Restore Mode. Log on to the computer with an account that has administrator rights.
  2. Remove all of the networking components with the Add/Remove Programs tool.

    For example, remove WINS, DHCP, DNS and other networking components.
  3. Remove all of the remaining network components by going into the properties of the network adapter and removing each component. Do not restart the computer, if you are prompted.
  4. Remove the network adapter from the Device Manager. back to the top

    Edit Registry Using Regedt32

    WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

  5. Locate and delete the following registry keys, if they exist, by using Registry Editor (Regedt32), where NetDriver is the name of the network adapter that is installed on the computer and where x is the number of the network adapter:



    HKEY_LOCAL_MACHINE\Software\Microsoft\DhcpMibAgent

    HKEY_LOCAL_MACHINE\Software\Microsoft\DhcpServer

    HKEY_LOCAL_MACHINE\Software\Microsoft\FTPSVC

    HKEY_LOCAL_MACHINE\Software\Microsoft\LPDSVC

    HKEY_LOCAL_MACHINE\Software\Microsoft\NetBT

    HKEY_LOCAL_MACHINE\Software\Microsoft\RFC1156Agent

    HKEY_LOCAL_MACHINE\Software\Microsoft\SNMP

    HKEY_LOCAL_MACHINE\Software\Microsoft\SimpTcp

    HKEY_LOCAL_MACHINE\Software\Microsoft\Tcpip

    HKEY_LOCAL_MACHINE\Software\Microsoft\TcpipCU

    HKEY_LOCAL_MACHINE\Software\Microsoft\TcpPrint

    HKEY_LOCAL_MACHINE\Software\Microsoft\Wins

    HKEY_LOCAL_MACHINE\Software\Microsoft\WinsMibAgent

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DHCP

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DhcpServer

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\FTPSVC

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lmhosts

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LPDSVC

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NetBT

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SimpTcp

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SNMP

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Wins

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WinSock

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WinSock2

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NetDriver<x>\Parameters\Tcpip

  6. You may also have to remove the following registry keys.

    Note: You may have to make a change to the rights on these keys to remove them. The default rights for "Everyone" is "Read". To change the rights, select the key that you want to delete. Then, on the menu, click Security, click Permissions, and then grant "Everyone" the Full Control right.

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\Root\Legacy_DHCP

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\Root\Legacy_Lmhosts

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\Root\Legacy_LPDSVC

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\Root\Legacy_NetBT

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\Root\Legacy_TCPIP

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManServer\Linkage\Bind

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Linkage\Bind

    back to the top

    Reinstall TCP/IP

  7. Restart the computer, and then boot the computer back into the Directory Services Restore mode again.
  8. After you have restarted the computer, the network adapter is redetected automatically. If the network adapter is not redetected, then add it to the computer by using the Add/Remove Hardware tool.
  9. Open the properties for that network adapter, and then add each of the components that had been previously removed. Do not restart the computer if you are prompted to do so.
  10. Click Add/Remove Programs, and then add back DNS and any other components that had been previously configured.
  11. Change the startup type of the NetLogon service to Automatic. To do so, right-click My Computer, click Manage, expand Services and Applications, in the right pane click Services, double-click NetLogon service, and then click Automatic from the options for the startup type.
  12. The NetLogon service must also have a dependency added. After the reinstallation of the network components, the NetLogon service has a dependency of "LanmanWorkstation". Also add a dependency for "LanmanServer". To do this, follow these steps:
    1. Locate the following registry key on the Local Machine\System\CurrentControlSet\Services\Netlogon folder:

      HKEY_LOCAL_MACHINE

    2. Double-click the DependOnService value. Only a dependency upon "LanmanWorkstation" should appear.
    3. On the line below "LanmanWorkstation", type LanmanServer, and then click OK.
  13. Close Registry Editor, and then restart the computer.
  14. Modify the following registry key:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters

    Specify the following values:

    Hostname REG_SZ: <computer name>
    Domain REG_SZ: domain name
    NV Hostname REG_SZ: computer name
    NV Domain REG_SZ: domain name

    Note: After you rebuild the TCP/IP, the four keys mentioned earlier are blank. You can click My Computer, click Properties, and then click Network Identification to note that the computer does not have an entry under either Full Computer Name or Domain.

back to the top


Additional query words: uninstall

Keywords: kbenv kbhowtomaster kbnetwork KB299451