The following steps will explain how to Export the DHCP database from a server that is running Microsoft Windows Server 2003 or Windows Server 2008 To move a DHCP database and configuration from a server that is running Windows Server 2003 or Windows Server 2008 to another server that is running Windows Server 2008.
Step: 1 - Export the DHCP database
1. Log on to the source DHCP server by using an account that is a member of the local Administrators group.
2. Click Start, click Run, type cmd in the Open box, and then click OK.
3. Type netsh dhcp server export C:\dhcp.txt all , and then press ENTER.
Note: You must have local administrator permissions to export the data.
Configure the DHCP server service on the server that is running Windows Server 2008
1. Click Start, click Administrative Tools, click Server Manager. If needed acknowledge User Account Control.
2. In Roles Summary click Add Roles, click Next, check DHCP server, and then click Next.
Step:2 - Import the DHCP database
1. Log on as a user who is an explicit member of the local Administrators group.
2. Copy the exported DHCP database file to the local hard disk of the Windows Server 2008-based computer.
3. Verify that the DHCP service is started on the Windows Server 2008-based 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:\ dhcp.txt all , and then press ENTER, where c:\ dhcp.txt is the full path and file name of the database file that you copied to the server.
Note: When you try to export a DHCP database from a Windows 2000/2003 domain controller to a Windows Server 2008 member server of the domain, you may receive the following error message:
Error initializing and reading the service configuration – Access Denied
Note You must have local administrator permissions to import the data.
6.To resolve this issue, add the Windows Server 2008 DHCP server computer to the DHCP Admins group at the Enterprise level and redo steps 4 & 5.
7. If the “access is denied” error message occurs after you add the Windows Server 2008 DCHP server computer to the DHCP Admins group at the Enterprise level that is mentioned in step 6, verify that the user account that is currently used to import belongs to the local Administrators group. If the account does not belong to this group, add the account to that group, or log on as a local administrator to complete the import and redo steps 4 & 5.
Step:3 - Authorize the DHCP server
1. Click Start, point to All Programs, point to Administrative Tools, and then click DHCP.
Note You must be logged on to the server by using an account that is a member of the Administrators group. In an Active Directory domain, you must be logged on to the server by using an account that is a member of the Enterprise Administrators group.
2.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.
3.Right-click the server object, and then click Authorize.
4.After several moments, right-click the server again, and then click Refresh. A green arrow indicates that the DHCP server is authorized.
If you still get error when you run netsh export/import follow this tip
you needed to delete any settings you created when you installed DHCP the first time (in DHCP under the server options area) on you new Windows Server 2008 DC.
How to Migrate WINS:
1. On the Windows Server 2003 WINS server, if it has any replication partners, stop them. Remove replication partners from the list of WINS replication partners
2. Stop the WINS server on the Windows 2003 Server and on the target Windows Server 2008 computer. To do this, type the following: net stop wins
3. Copy the Wins.mdb file (in %systemroot%\System32\Wins folder) from the source to the WINS folder on Windows Server 2008 server
4. Start WINS on the target Windows Server 2008 server. Type the following: net start wins
5. Take the source Windows 2003 server offline
6. On the target Windows Server 2008 server, use the WINS service to add any existing WINS servers as replication partners