Posted by: Nathan Simon
DHCP Scope, DHCP Server, export DHCP, import DHCP, migrate DHCP, move DHCP, netsh, Windows Server 2003, Windows Server 2008 R2
Wan to know how to export DHCP from Server 2003 and move it to Server 2008? Well I found the step by step instructions of how to do so. Mind you this could also be used to backup a DHCP Scope on Windows Server 2003 as well. Not sure how many of you techies out there are using Server 2003 as your primary DHCP Scope anyways, but just in case!
Click Start, click Run, type cmd in the Open box, and then click OK.
Type netsh dhcp server export C:\dhcpdatabase.dat all, and then press ENTER.
Note: While the export command runs, DHCP server is stopped and does not respond to clients seeking new leases or lease renewals.
At the end of this step, you will have the DHCP configuration as well as address lease information exported into the dhcpdatabase.dat file. You can now stop the DHCP service on the source server.
Install the DHCP server service on the server that is running Windows Server 2008
To install the DHCP Server service on an existing Windows Server 2008 computer:
1. Start Server Manager.
2. Click on Add Roles.
3. Select the DHCP server role and press Next.
4. Click through the next sequence for screens of the installation wizard to complete the DHCP server installation. You should not authorize the DHCP server at this point.
Import the DHCP database
1. Log on as a user who is a member of the local Administrators group or DHCP administrators group.
2. Copy the exported DHCP database file to the local hard disk of the Windows Server 2008 computer.
3. Verify that the DHCP service is started on the Windows Server 2008 computer.
4. Click Start, click Run, type cmd in the Open box, and then click OK.
5. At the command prompt, type netsh dhcp server import c:\dhcpdatabase.dat all
And there you have it, no manual entries needed!