Command Line

  • Log on to the 2008 DHCP server.
  • Open a command prompt as Administrator.
  • On the Action menu (from within the DHCP management console), click “Backup”.
  • Type netsh dhcp server export C:\temp\dhcp.txt all, and then press ENTER.
  • Copy the exported DHCP text file to C:\temp of the new DHCP server.
  • Open a command prompt as Administrator (on the 2012/2016)
  • Type netsh dhcp server import C:\temp\dhcp.txt all, and then press ENTER
  • Open DHCP console on the 2012/2016), in the console tree, right-click DHCP and Select “Authorize”.
Check the current replication health between the domain controllers. Repadmin /replsummary Displays the elements are remaining in the queue to replicate. Repadmin /Queue Displays the replication status when the specified domain controller last attempted to implement inbound replication of Active Directory partitions. Repadmin /Showrepl Forces the KCC (Knowledge Consistency Checker) on targeted domain controller(s) to immediately recalculate its inbound replication topology. It checks and creates the connections between the Domain Controllers. By running the command we are forcing DCs to check if new Domain Controller is found in the environment and if yes then add connection to the same. Repadmin /KCC