DHCP Scope Migration

So, I was thinking that I would write a script to transfer some DHCP scopes from one machine to another.  Well, wouldn’t you know…  there is already a tool to do that, and I didn’t even have to install software, just read a little article…


http://www.geekadmin.com/?p=13


I have Windows Server 2003.  So here is the pertinant part for me:


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!


Quick and easy.

Leave a Reply