Manual DHCP Backup and Restore

From Notes_Wiki

Home > Windows > Windows Server Roles and Features > Manual DHCP Backup and Restore


Manual DHCP Backup and Restore

Manual DHCP Backup Using DHCP Console

In this example, the DHCP configuration is backed up from server DHCP1. Later, this backup will be restored to server DHCP2.

Step 1: Create a Backup Folder

Create a folder on the server desktop named DHCPBackup.

Step 2: Open the DHCP Administration Console

Open the DHCP console from the Start menu or Server Manager.

Step 3: Right Click the Server and Select Backup

Right-click the DHCP server name and select Backup.

Select the folder created in Step 1 (in this example, the DHCPBackup folder on the desktop), then click OK.

Note: There is no confirmation message for backup completion. You can verify the backup by opening the folder and checking for new files.

If files appear in the folder, the backup completed successfully.

That’s it for manually backing up the DHCP server. Next, we’ll move on to the restore process.

Restore DHCP Server Using DHCP Console

Important Tip: Before restoring, copy the backup folder created earlier to %SystemRoot%\System32\DHCP\backup Otherwise, you will get an error indicating that the database was not restored correctly.

Step 1: Log in to the Target DHCP Server

Log in to the server where you want to restore the DHCP backup. For example, log in to the server named DHCP2.

Step 2: Copy the Backup Folder to the Correct Location

Copy the DHCPBackup folder to %SystemRoot%\System32\DHCP\backup

Step 3: Restore the DHCP Configuration

1. Open the DHCP Console. 2. Right-click the server name and select Restore. 3. Browse to the DHCPBackup folder and select it. 4. When prompted that the DHCP service must be stopped and restarted, click Yes.

Once completed, the restore process will be finished.

You can verify by browsing the scopes to ensure everything was restored correctly. In this example, both scopes, leases, and reservations were successfully restored.

Backup DHCP Server Using PowerShell

In this example, the backup will be performed using PowerShell while logged in locally to the server.

To back up the DHCP configuration, run the following command:

Backup-DhcpServer -Path "C:\DHCPBackup"

To back up a DHCP server remotely, use:

Backup-DhcpServer -ComputerName "DHCP1" -Path "C:\DHCPBackup"

Restore DHCP Server Using PowerShell

Step 1: Copy the Backup Folder

Copy the backup folder to the correct path:

C:\Windows\System32\dhcp\backup

Note: If the folder is not in this location, you may receive permission or path errors.

Step 2: Run the Restore Command

Use the following PowerShell command:

Restore-DhcpServer -ComputerName "DHCP2" -Path "C:\Windows\System32\dhcp\backup"

That completes the backup and restore process using PowerShell.

For more information, refer to the official PowerShell command reference for Restore-DhcpServer and Backup-DhcpServer.


Summary: This guide covered how to manually and automatically back up and restore a Windows DHCP server using both the DHCP Console and PowerShell.


Corrections and Improvements Made:

  • Fixed grammar and spelling throughout the document.
  • Corrected path: `C:Window\ssystem32\dhcp\backup` → `C:\Windows\System32\dhcp\backup`
  • Improved sentence flow and consistency.
  • Added proper headings and subheadings for MediaWiki format.
  • Added notes and bold formatting for clarity.
  • Replaced informal phrases with technical writing style.


Home > Windows > Windows Server Roles and Features > Manual DHCP Backup and Restore