How to Export and Import DHCP scopes with DhcpExim and Netsh
There is come a time, when your old DHCP server (maybe a desktop server) is going to retire, and you need to transfer all your scopes to a new hardware.
Some people will say, that is easier just to create the scopes and “live and let die”, but we know the best solution to the corporation is to migrate the scopes to avoid conflicts and reservation faults.
So how do you do this?
In NT and 2000 servers you use an application called DHCPEXIM(dhcp export import) its very easy to use:
1- Install on the machine where you want to export the scopes;
2- Run it, select the scopes and click on export
3- Get the saved file, transfer to the new machine;
4- Install the dhcpexim on the new machine
5- Install the DHCP server without any configuration
6- Run dhcpexim and import the scopes
7- Authorize the dhcp server
Now on 2003 servers the dhcpexim does not work, you have to use the netsh shell to transfer the scopes.
Use this command to export all scopes from the source machine:
netsh dhcp server export C:\dhcp.txt all
Install the dhcp server on the new machine and run this import command:
netsh dhcp server import C:\dhcp.txt all
After that authorize the dhcp server and that´s it!
The main objective in transferring the scopes in opposite of just reinstall everything is to preservate the reserves, and the states of the leases. I know XP and 2000 can avoid some kinds of conflict ip and dhcp but you are never sure what kind of equipment you have on all your network (palms, printers, etc).
If you enjoyed this mini how-to leave a comment or If you have more questions enter in our forum don’t be shy this is a friendly forum!






July 26th, 2006 at 4:13 pm
I’m trying to find a way to get the Scope Names from a remote DHCP server, or for that matter even a local dump. netsh on w2k server didn’t seem to have this info
any ideas?
July 26th, 2006 at 5:44 pm
You can install the administrator Pack.
Run the adminpak.msi on the c:\windows\system32 folder.
This file is located on the server.
When you run it on your workstation, it enables all the snap-ins and controls (dns,dhc,wins,etc).
So you just have to open the DHCP and connect to the remote server.
April 25th, 2007 at 11:00 pm
Netsh worked great!!! Thanks for the info.
September 1st, 2007 at 7:13 am
Thanx a bunch, you just helped me
Keep it
Dotfish