Wednesday, May 9, 2018

Changing / transfering DHCP settings on Windows server

A few weeks ago I had to make changes to the subnet mask for a previous defined IP region in an DHCP server of a Windows 2016 domain - what only can be done by exporting the settings, modifying them in an editor, deleting all settings in the DHCP server and importing the new settings. What, by the way, is the same procedure for moving the DHCP to a new server ...

The most important commands for this are:
netsh dhcp server export c:\dhcp.txt all (c:\dhcp.txt is just a sample)
netsh dhcp server import c:\dhcp.txt all

And here are a few links to sites which describe this process very helpful in detail:
https://community.spiceworks.com/how_to/23549-exporting-and-importing-dhcp-database-on-windows-server
https://www.tobias-hartmann.net/2010/09/dhcp-einstellungen-in-txt-exportieren-importieren-server-2003-2008/

No comments:

Post a Comment