Welcome to TechNet Blogs Sign in | Join | Help

News

  • Welcome to the blog for the Microsoft CSS Enterprise Platforms Networking team.

    Disclaimer: All postings are provided "AS IS" with no warranties, and confer no rights. This weblog does not represent the thoughts, intentions, plans or strategies of Microsoft. Because a weblog is intended to provide a semi-permanent point-in-time snapshot, you should not consider out of date posts to reflect current thoughts and opinions.

    Blog Tools

    Add to Technorati Favorites
    Blog Flux Directory
    Computers Blogs - Blog Top Sites

    Add to Google

    Locations of visitors to this page

Steps to move a DHCP database from a Windows Server 2003 or 2008 to another Windows Server 2008 machine

The DHCP database can be moved or migrated from a Windows Server 2003 server to a Windows Server 2008 server, or from one Windows Server 2008 server to another.  The information below details the necessary steps.

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:

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.

Import the DHCP database

1.   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 use the administrator account to import the database as described later in this section.

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:\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.

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.

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.

- Wayne Melvin

Posted: Friday, June 27, 2008 10:42 PM by MichaelPlatts

Comments

Network Access Protection (NAP) said:

Greetings NAP fans! I just found out about this and had to share it with the NAP community. The Enterprise

# August 11, 2008 4:16 PM

Joey said:

How do you move a DHCP database from 2008 back to 2003? I get errors following the steps above.

# September 19, 2008 9:44 PM

nukeitmike said:

What would cause the snapin to display a red x on the "Address Leases" and "There are no items to show in this view."?  The reservations are there, but it won't show anything in the lease view.

This is after a somewhat troubled attempt at moving from a 2003 DHCP server to a 2008 DHCP server.

# October 1, 2008 3:59 PM

Sameer N.Mirza said:

Joey,

what errors do you get? You get error while exporting 2008 database or while importing the same in 2003?

# October 15, 2008 7:41 AM

DavidJob said:

when moving from a windows 2003 Server, French localized version, to a windows 2008 English localzied version, I get an error  :

"Error while importing class "Default Routing and Remote Access Class." This class conflicts with the existing class "Classe de routage et d'accès distant par défaut." An internal error occurred."

Is there a workaround or I'm stuck rebuilding all by hands ?

Thx.

# December 14, 2008 9:43 PM

Paul Bell said:

I am also experiencing the "Red X" and "There are no items to show in this view." issue with the above process.  I did this once before and it worked fine.  DHCP, by the way, seems to be working...I just can't see the leases from the console.

# January 4, 2009 6:12 PM

pbrock@peopesbank-wa.com said:

I too am getting the red X on the leases after trying to move DHCP from a windows 2003 to a 2008 server. For now I am reverting back to my windows 2003 DHCP server but I would like to pull that out of the mix of servers as soon as possible.

# January 9, 2009 3:33 PM

Joe Vlachos said:

I too am getting the red X on the leases after trying to move DHCP from a windows 2003 to a 2008 server. For now I am reverting back to my windows 2003 DHCP server but I would like to pull that out of the mix of servers as soon as possible.

When we manage the server from another 2003 member server, we can see all of the address leases.  It's almsot as if the snap-in on the 2008 server is not working.

We created a new scope on the 2008 server and we can see all of the addresses on that scope.....another Windows mystery?

# January 12, 2009 11:27 AM

michaellsf said:

Did any one find a solution for the red x on the DHCP lease?

# January 12, 2009 12:19 PM

Eric said:

Are there any changes if you need to move from 2000 to 2008?

# January 20, 2009 11:37 AM

Andrey_Ra said:

We all need solution for the red x on the DHCP lease!

# February 6, 2009 3:15 AM

Andrey_Ra said:

I found interesting post in internet:

Windows 2008 - DHCP - New Production Environment

--------------------------------------------------------------------------------

Hi All

I will be writing in here to pass on some of my experiences with

Windows 2008 RTM, MS have sponsored a project for us where a largish

organisation will be deploying around 40 W2K8 servers, primarily File,

Print and Network Services.

I have to admit so far the migration has been going well, until DHCP,

this has caused no end of grief. We are over it now, but this is

important to perhaps save other people time.

1. Do not even bother to import an export from W2K3 database, they do

not import correctly killing the capability to issues addresses,

eventually we are now just re-creating new scopes. We experienced a

few seperate issues importing the DBs

a) Importing did not bring over lease information

b) Importing did not bring back all reservations and when it did,

address leases displayed a large red X over the item and stopped

issuing addresses.

2. Do NOT delete your scope and restart the services for DHCP, they

will not start with an error "The specified file cannot be found" and

you find yourself re-installing the DHCP role.

Hope this give others a heads up.

Mike

# February 6, 2009 3:22 AM

Clustering and High Availability said:

Hi Cluster Fans, The cluster team has been busy working on some great new features for Failover Clustering

# February 10, 2009 3:33 AM

Ricardo Fernandes said:

# February 13, 2009 6:43 AM

Brian J said:

Great steps, but I'm about to upgrade to a Win2k8 domain from Win2000. What would the process be for moving a database there? Would it just be that the steps from http://support.microsoft.com/kb/325473 apply? Or would I have to go from Win2k - Win2k3 - Win2k8?

Thanks!

# March 4, 2009 4:49 PM

Brian said:

You should update this article as you do not have to have an account that has an explicit local administrative membership.  You do not have to reboot into Directory Services Restore Mode for a DC.  Instead, you just have to run the CMD prompt as Administrator when launching it.

# March 8, 2009 12:58 AM

mdgrkb said:

Hi, everyone.

Wanted to let you know I'm having the problem described in this article http://support.microsoft.com/kb/169290/en-us , but on a Windows Server 2008 box....

Seems like someone picked up an old library when building 2008...

The workaround is not to use superscopes, but it makes it more difficult to manage when the server has tens of scopes...

Greetings

# June 17, 2009 2:58 PM

David said:

is there an upgrade path to move WINS from a Windows 2000 Domain to a Server 2008 Domain?

# July 20, 2009 2:13 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker