Backing up a DHCP server is simple using the cmdlets
Restore-DhcpServer. There are a couple gotchas and while it is not as directory specific as the dns backups are I chose to use the same directories out of convenience,
ACLs must be set to give “DHCP Server” full control over the restoration files otherwise the import fails.
The service must be restarted prior to removing the restoration files, otherwise you get errors and no restoration occurs.
This script utilizes my email script submodule.
A DHCP server runs a backup of itself every 60 min by default, using probably
Backup-DHCPServer cmdlet. This automatic backup is located, always by default in
Backup-DhcpServer vs Export-DhcpServer