Easy migration of DHCP database from Windows 2003 to Windows 2008

Migrating the configuration from one DHCP to another is much easier than most people think;  you have to be a membe of the local administrators group otherwise the command will fail even if you are a domain administrator.

To export all scopes:

 netsh dhcp export c:dhcpdb all

To export a ceratin scope:

 netsh dhcp export c:dhcpdb 192.168.1.0 

move this export over to the new server and issue the following:

To import all scopes:

 netsh dhcp import c:dhcpdb all

To import a ceratin scope:

 netsh dhcp import c:dhcpdb 192.168.1.0