Moving a DHCP database to another server

Windows 2000 provides the DHCP console, which allows you to manage DHCP servers installed and running on a single DHCP server computer. However, the DHCP console does not allow you to move a database from one installed DHCP server to another server computer.

This topic provides details of how to move a database from from one server computer to another server computer, assuming the DHCP database and its backup directories are on default drive and path locations.

Backing up the DHCP server database (at the source server)

Complete the following procedures at the server computer being used as the source for the DHCP database:

1.   Stop the DHCP server.

2.   Disable the DHCP Server service in the list of services.

This prevents the DHCP server from starting after the database has been transferred. To perform this task, use Computer Management and select the DHCP Server service from the list for it to be disabled.

3.   Copy the DHCP server directory tree, systemroot\System32\Dhcp, to a temporary location on the new (destination) DHCP server. For example, copy the directory tree to C:\Temp\System32\Dhcp.

4.   Start the Registry Editor (Regedt32.exe) and go to the following subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer

5.   Save the specified key to a text file.

6.   Delete the DHCP server database folder, %SystemRoot%\System32\Dhcp, at the source server.

7.   Uninstall the DHCP server to remove it from this server.

Note:     Steps 6 and 7 are optional.

Restoring the DHCP server database (at the destination server)

Complete the following procedures at the server computer being used as the destination for the DHCP database:

1.   If you have not already installed the DHCP server software, install it and then restart the server computer.

2.   Stop the DHCP Server service.

3.   Rename the System.mdb file to System.src in the temporary folder, such as the C:\Temp\System32\Dhcp directory.

4.   Copy the DHCP server directory tree from the temporary folder to systemroot\System32\Dhcp to replace the existing DHCP server directory.

5.   Start Registry Editor (Regedt32.exe) and go to the following subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer

6.   Select the DHCPServer key (located under the Services key).

7.   Restore the registry hive information from the file you saved in Step 5 of the previous section.

8.   In Restore Key, for File name specify the following:

systemroot\System32\Dhcp\Backup\Dhcpcfg

9.   When prompted, click Yes.

After clicking Yes to the prompt to overwrite the existing registry entries, if you have problems completing the restore operation, retry the previous step.

Be sure that you are not attempting the restore using Registry Editor from a remote computer. Also, verify that this error was not caused by clicking Save Subtree As instead of Save Key as indicated in Step 5 in the previous section when saving registry information at the source server.

10.  Exit Registry Editor.

11.  Start the DHCP Server service.

12. Open the DHCP console and use Reconcile All Scopes to reconcile the DHCP server database to the restored information now merged into the Windows 2000 registry.