Tuesday, June 12, 2012

Importing/Exporting DHCP scopes


The issue I was dealing with turned out to be with the DHCP server through Windows. It would not start. After reinstalling the DHCP server it was able to start but I had lost all of the DHCP scopes. Luckily there are identical servers that each provide DHCP services for their respective subnets and I was able to use the commands outlined below to import and export the settings from one server to another. Now I keep a copy of this export file available so I am able to recreate the DHCP scope settings easily at anytime.

Export example:
       netsh
       dhcp server \\servername
       export c:\temp\dhcpscopes all

Import example:
       netsh
       dhcp server \\servername
       import c:\temp\dhcpscopes all

Usage for this tool can be found here:
Importing/Exporting DHCP scopes

No comments: