Exporting and Importing the DHCP Database

Problem

You need to copy and restore the DHCP database, maybe to deploy a new DHCP server with same/similar settings.

Solution

Log on to the source DHCP server.
Click Start, click Run, type cmd in the Open box, and then click OK.
Type netsh dhcp server export C:\dhcpbackup.txt all, and then press ENTER.
Log on to the destination DHCP server.
Install the DHCP server (Role) service on the destination DHCP server.
Copy the exported DHCP database text file to the local hard disk of the destination DHCP server.
Verify that the DHCP service is started on the destination DHCP server.
Click Start, click Run, type cmd, then click OK.
Type netsh dhcp server import C:\dhcpbackup.txt all, and then press ENTER
Open the DHCP console.
In the console tree, click DHCP.
On the Action menu, click Authorize.

Test Platform

Windows 2008 R2

Reference
Exporting and Importing the DHCP Database

Hits: 4

Leave a Reply