Tag: DHCP

Migrating DHCP Server configuration to a new Server- netsh

Migrating DHCP Server configuration to a new Server- netsh

Situation:

You have installed a new Server into an existing domain, or to replace an existing server. To save time you would like to export the DHCP Server Scope options and then import them into the new server.

Below is an easy way of migrating the DHCP Server settings with minimal effort. This will export all settings (Scope/Reservations etc).

Export Command on current server:

1) Open an Administrative Command Prompt
2) Use the following command to export the existing DHCP configuration:

netsh dhcp server export dhcp.txt all

3) Copy the dhcp.txt file to the new server

Import command on new server:
1) Open an Administrative Command Prompt
2) Use the following command to import the existing DHCP configuration:

netsh dhcp server import dhcp.txt all

Hopefully this has been useful to you.