DHCP Scope Migration

Mizi 46 Reputation points
2021-08-26T08:52:04.507+00:00

Hi,

I have plan to migrate DHCP server from server 2012 R2 to windows server 2019 Standard. Initial plan is I want to backup the DHCP database and restore to new server, but unfortunately our management not approve that plan due to concern unexpected impact to certain scope (department). So they want me come with plan migrate scope by scope.

So example we have 15 scope inside that then i will divide by 5 scope per weeks (3 weeks to complete all)

I will use below command to backup 5 scope and then restore back to new DHCP server.

Export-DhcpServer -ComputerName DC1 -File "C:\DHCPBackup\dhcpexport.xml" -ScopeId 172.18.0.0,172.18.2.0,172.18.3.0,172.18.4.0,172.18.5.0 -Leases

So i will repeat this method for the rest of scope. My question, is it this is right method to migrate? Any impact i can foresee? Previously i only have experience to restore entire DB instead of scope by scope. I have tried on test environment and seems ok, new scope restoration will not overwritten other scope (previously restored).

Thanks

Hasmizi

Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-08-26T12:50:54.177+00:00

    Yes, it looks good to me. Some other examples here.
    https://learn.microsoft.com/en-us/powershell/module/dhcpserver/export-dhcpserver?view=windowsserver2019-ps

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Limitless Technology 39,916 Reputation points
    2021-08-26T18:00:50.51+00:00

    Hello @Mizi ,

    I would like to suggest you to build 2019 DHCP server but do not authorize it so it should not impact your existing DHCP server and export that scope using that command
    After it got successfully export just check everything thing looks in 2019 DHCP server for that scope you exported.

    Impact here is you might not be able use new server as its not authorize yet.

    If the reply was helpful, please don’t forget to upvote or accept as answer.


  2. Anonymous
    2021-08-26T18:05:39.297+00:00

    Just checking if there's any progress or updates?

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  3. Mizi 46 Reputation points
    2021-08-27T01:51:32.757+00:00

    @Anonymous thanks for your feedback, ya if u think looks good, i will use this approach. At first im worry whether second import will overwritten the first import scope. But from my test environment i can see it just add new scope after we import that. So i think it would be safe to use this method, as a plan it will 3 time import . First week would first 5 scope been exported and following with second and third weeks. I will stick with this plan. Thanks for help.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.