Export DHCP scopes via command

Reading Time: < 1 minute

1) netsh dhcp server <ipaddress> export all c:\dhcp-export.txt
2) Copy file dhcp-export.txt to destination server disk C

Run the below command if you wish to import into new DHCP server

3) netsh dhcp server import all c:\dhcp-export.txt

The scopes will be activated by default, as soon as you import. Disable them if required.

Don’t forget to configure switch if you have an IP helper