How to Move DHCP Service

Environment
  • Microsoft Windows Server 2000 / 2003

Introduction
Migrate our DHCP server to be Windows Server 2003 from Windows Server 2000


Solutions
Stop DHCP Server service
net stop dhcpserver
Then, compact DHCP database
cd %systemroot%\system32\dhcp
jetpack.exe DHCP.mdb temp.mdb
Next, export DHCP Database by running DHCP Database Export Import Tool (DHCPExim.exe). That is needed for Windows NT and Windows Server 2000

Final, run this command on the server that is running Window Server 2003
netsh dhcp server import "c:\tmp\dhcpdatabase.txt" all


Reference