Windows Server 2012 R2 and later Operating Systems offer Backup-DHCPServer PowerShell cmdlet. As the name suggests, Backup-DHCPServer PowerShell cmdlet is capable of backing up DHCP database to a specified location. As shown in the command below, I am backing up my test lab DHCP Server named DHCPServer1 to E:\DHCPBackup.
- Backup-DHCPServer –ComputerName DHCPServer1.Test.com –Path E:\DHCPBackup
If you wish to automate this process, create a schedule task on the DHCP Server and run the Schedule Task every midnight or at a specified time.
About Nirmal Sharma
Nirmal Sharma is a MCSEx3, MCITP and Microsoft MVP in Directory Services. He specializes in directory services, Microsoft Azure, Failover clusters, Hyper-V, and System Center products and has been involved with Microsoft Technologies since 1994. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles on various sites and contributing to Health Packs for ADHealthProf.ITDynamicPacks.Net solutions. Nirmal can be reached at [email protected].