How to DHCP migration from Windows Server 2019 to Windows Server 2022?

 How to DHCP migration from Windows Server 2019 to Windows Server 2022?

  1. Before doing anything, we should have ready DC2019 and DC2022 Server ready and 

  2. DHCP role added in both Servers but DHCP scope added only in DC2019.

DC2019 - DHCP - Scope created

DC2022 - DHCP - No Scope created


  1. Now go to DC2019 , and create backup of DHCP Scope (if by change something happen, we could backup easily)

  1. Click on Tools > DHCP

  2. Right click on dc2019.akshrestha.com

  3. Click on the “backup” option.

  • Click on System32 > dhcp>

  • Backup folder > new

  • Click on OK



  1. Let’s check the win10 Client computer which takes the IPs from dc2019 DHCP server.

  • Open Win10 client computer which was joined with a domain.

  • Open CMD, type ipconfig /all commands.

  • You should see DHCP Enabled = Yes

  • IPv4 = 192.168.0.101

  • DHCP Server = 192.168.0.2 (dc2019 server ip)


  1. Let go to DC2019 server and perform the DHCP migration tasks:

  • Open CMD, and type 

  • cd\  and enter

  • Type C:\>netsh command (enter)

  • Type netsh>dhcp command (enter)

    • netsh dhcp>

    • netsh dhcp>help

Now if your server is a Remote server then you have to add [\\servername/ipaddress] but my server is a local server that’s why I don't have to type all the commands I have to type server only like below.

  • netsh dhcp>server

  • netsh dhcp server> help 

   (you will see the help list, choose export)

  • Type netsh dhcp server>export C:\dhcp2019file all command

  • You can go and check inside the C: drive, you will find dhcp2019file there. See the below snapshot


  1. Go to dc2022 server, if you didn’t install dhcp role server then you should install that. But don’t add scope , like I said earlier.

  2. Before start to migration, make sure you have to copy that dhcp2019file and paste in dhcp2022 server (don’t matter the location, you can paste it any location)


  1. Before starting to migrate make sure, first STOP dhcp scope in dc2019 server. 



  1. Open PowerShell command from dc2022

  • Start to type cd\ (enter)

  • C:\>netsh (enter)

  • netsh>dhcp (enter)

  • netsh dhcp>server (enter)

  • netsh dhcp server>import C:\dhcp2019file (enter) this is file name path.


  1. Now open Server Manager (DC2022)

  • Click on Tools > DHCP

  • Click on dc2022.akshrestha.com

  • Expand IPv4

  • Expand Scope 

  • You will see all the configurations 


  1. Now time to test, if our client computer get which DHCP server ip


  • Open Win10 client computer

  • Open CMD command

  • Type ipconfig /flushdns command 

  • Type ipconfig /release command

  • Type ipconfig /renew command

  • Type ipconfig /all

  • You will see DHCP = dc2022 server ip.

Like this we could migrate successfully to DHCP.

The END


Comments

Popular posts from this blog

To increase the attachment file size limit in Exchange Server 2019

How to Schedule back up, backup once, and restore or recover the backup?

Common Exchange Online server issues and solutions