If you tried to export the DHCP database from one server to another and it failed, you might not have completed the steps correctly. There are several procedures that must be done in the correct order to successfully migrate the database. Try to export and import the database again by using the following procedures in the order they are presented.
To perform these procedures, you must be a member of the Administrators group, or you must have been delegated the appropriate authority.
To move a DHCP database and configuration to another server:
Log on to the source DHCP server by using an account that is a member of the local Administrators group.
Click Start, click Run, type cmd, and then click OK.
Type netsh dhcp server export C:\dhcp.txt all, and then press ENTER.
Install the DHCP Server service
To install the DHCP Server service on an existing computer runningWindows Server:
At the DHCP server computer, click Start, click Control Panel, and then double-click Add or Remove Programs.
Click Add/Remove Windows Components.
In the Windows Component Wizard, in the Components box, click Networking Services, and then click Details.
Select the Dynamic Host Configuration Protocol (DHCP) check box if it is not already selected, and then click OK.
In the Windows Components Wizard, click Next to install the selected components. Insert the Windows Server 2008 installation CD into your computer CD drive or DVD drive if you are prompted to do this. Setup copies the DHCP server and tool files to your computer.
When Setup is complete, click Finish.
Import the DHCP database
To import the DHCP database:
Log on as a user who is an explicit member of the local Administrators group. A user account in a group that is a member of the local Administrators group will not work. If a local Administrators account does not exist for the domain controller, restart the computer in Directory Services Restore Mode, and then use the administrator account to import the database as described later in this section.
Copy the exported DHCP database file to the local hard disk of the computer.
Verify that the DHCP service is started on the server computer.
At the command prompt, type
netsh dhcp server import c:\dhcpdatabase.txt all
, and then press ENTER, where c:\dhcpdatabase.txt is the full path and file name of the database file that you copied to the server.
Authorize the DHCP server
To authorize the DHCP server:
At the DHCP server computer, click Start, point to All Programs, point to Administrative Tools, and then click DHCP.
In the console tree of the DHCP snap-in, expand the new DHCP server. If there is a red arrow in the lower-right corner of the server object, the server has not yet been authorized.
Right-click the server object, and then click Authorize.
After several moments, right-click the server again, and then click Refresh. A green arrow indicates that the DHCP server is authorized.