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