Reinstalling TCP/IP on Windows Server 2003 domain controller

During an SBS2003 install the other day I noticed a long pause during one of the supplementry CD installs. I checked the logs and noticed an MSI installer error but allowed the install to continue and finished the setup of the server including the R2 Technologies CD and all Windows updates.

I then begun to notice Event ID 4191

IP could not open the registry key for adapter
TCPIP\Parameters\Adapters\NDISWANIP. Interfaces on this adapter will not be
initialized.

on restarts if the server along with the loss of my static IP. Interestingly enough, if I viewed the status of the LAN card the static IP was there but on viewing TCP/IP settings they were all set to obtain automatically. This continued after many reboots, driver re-installation etc.

I tried to repair Winsock first by running netsh winsock reset with no luck and had to consult Microsoft’s KB325356.

I have copied the instructions here, please note this can have undesired effects. In my case several Exchange errors were created because of DNS issues caused by this fix and these each had to be investigated:

To resolve this issue, delete the corrupted registry keys, and then reinstall the TCP/IP protocol.

To delete the corrupted registry keys, follow these steps.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows

1. Restart the domain controller.
2. When the BIOS information appears, press F8.
3. Select Directory Services Restore Mode, and then press ENTER.
4. Use the Directory Services Restore Mode password to log on.
5. Click Start, and then click Run.
6. In the Open box, type regedit, and then click OK.
7. Locate the following registry subkeys:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2
8. Right-click each key, and then click Delete.
9. Click Yes to confirm the deletion of each key.
10. Close Regedit.
11. Locate the Nettcpip.inf file in %winroot%\inf, and then open the file in Notepad.
12. Locate the [MS_TCPIP.PrimaryInstall] section.
13. Edit the Characteristics = 0xa0 entry and replace 0xa0 with 0x80.
14. Save the file, and then exit Notepad.
15. In Control Panel, double-click Network Connections, right-click Local Area Connection, and then select Properties.
16. On the General tab, click Install, select Protocol, and then click Add.
17. In the Select Network Protocols window, click Have Disk.
18. In the Copy manufacturer’s files from: text box, type c:\windows\inf, and then click OK.
19. Select Internet Protocol (TCP/IP), and then click OK.

Note This step will return you to the Local Area Connection Properties screen, but now the Uninstall button is available.
20. Select Internet Protocol (TCP/IP), click Uninstall, and then click Yes.
21. Restart your computer, and then select Directory Services Restore Mode as mentioned in steps 2 – 4.
22. In Control Panel, double-click Network Connections, right-click Local Area Connection, and then select Properties.
23. On the General tab, click Install, select Protocol, and then click Add.
24. In the Select Network Protocols window, click Have Disk.
25. In the Copy Manufacturer’s files from text box, type c:\windows\inf, and then click OK.
26. Select Internet Protocol (TCP/IP), and then click OK.
27. Restart your computer.

After you reinstall TCP/IP, install Microsoft Windows Support Tools, and then run the Netdiag and Dcdiag tools to verify that the domain controller is functioning correctly. To do this, follow these steps:

1. Insert your Windows Server 2003 CD-ROM in your computer’s CD-ROM or DVD-ROM drive.
2. Click Start, click Run, type DriveLetter:\Support\Tools\suptools.msi, where DriveLetter is your CD-ROM or DVD-ROM drive, and then click OK.
3. Follow the instructions on the screen to complete the installation of Windows Support Tools.
4. At the command prompt, locate the folder where the Support Tools were installed. By default, this folder is C:\Program Files\Support Tools.
5. Type dcdiag /v for domain controller diagnostics, and then address any errors.
6. Type netdiag /v for network diagnostics, and then address any errors.

Server 2003 Memory Optimization (Exchange 2003)

If your server has more than 1GB RAM you can take advantage of additional switches in the startup options.

  1. Go to System Properties by pressing the Windows key + Pause.
  2. Click settings under the “Startup and Recovery” section.
  3. Click Edit
  4. Copy the line under “[operating systems]” and paste it directly underneath.
  5. In the top line you have just copied add “/3GB /USERVA=3030”
  6. Click OK
  7. Click OK
  8. Restart the server.

Exchange 2003 System Manager crashes when accessing Help

I tried updating the OS and Exchange, no joy, so then I gave up for a while and instead of trying to use the Help I just search for the information on the internet.  Eventually I gave in and after a bit of searching I found the answer.

The crashing is caused by the installation of IE7 on Server 2003 running Exchange 2003.  To solve the problem is easy, just delete a 1 file.

  1. Stop the Exchange System Attendant Service

  2. Stop the IIS Admin Service

  3. Open a Command Prompt rename the PSAPI.DLL in the exchsrvr\bin directory. to PSAPI.DLL.OLD

  4. Restart the Exchange and IIS services

Problem sovled!