TheTAZZone - Internet Chaos

Backup of DHCP Servers

ORIGINALLY POSTED BY CEMETRIC FOR THETAZZONE/TAZFORUM HERE

NOT ALL THE CODE MAY BE IN THIS POST…PLEASE FOLLOW THE LINK TO THE ORIGINAL THREAD

The DHCP database %SystemRoot%\System32\Dhcp on DHCP servers contains information about DHCP leases and reservations.
By default, this database is automatically backed to: %SystemRoot%\System32\Dhcp\Backup This happens every 60 minutes.

What you need to back up, however, is the configuration of your DHCP server, so that if the server bites the dust you can restore this configuration to a replacement DHCP server in a matter of minutes, if not seconds. To back up the configuration of a DHCP server, use the netsh command:

Code: Select all
netsh dhcp server dump > dhcpconfig.dmp

This creates a netsh script called dhcpconfig.dmp, which you can copy to your replacement server and use to configure this server, by using the command:

Code: Select all
netsh exec dhcpconfig.dmp

Easy as pie :mrgreen:

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertise

If you'd like to advertise on The Mutt ( aka TheTAZZone.com ) feel free to contact us at: administration[at]thetazzone.com

TheTAZZone is a non-commercial entity. We do not sell any products or services ourselves. Our revenue comes from advertising and donations only.

We appreciate your support! Your advertising revenue ( or donations ) helps us to continue to upgrade, improve, and offset the costs of maintaining this site.

Donations can be made through the page ' Donate '.