Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to backup and restore a Windows DHCP Server via the DHCP Manager and PowerShell

Posted on 06/06/202005/09/2026 Christian By Christian No Comments on How to backup and restore a Windows DHCP Server via the DHCP Manager and PowerShell
  1. Home
  2. Windows Server
  3. How to backup and restore a Windows DHCP Server via the DHCP Manager and PowerShell
backup Windows DHCP Server

Dynamic Host Configuration Protocol (DHCP) is a standard protocol defined by RFC 1541 (which is superseded by RFC 2131) that allows a server to dynamically distribute IP addressing and configuration information to clients. See this guide for more information on how DHCP works. Please see see How to Fix The Virtual Desktop is Not Sysprep Generalized, How to create a Windows Server reference image using WDS, and SysPrep was unable to validate your Windows Installation.

In order to avoid downtime, it is recommended to have multiple DHCP servers running. In case of a DHCP crash, you do not want to be found wanting, because of this, it is recommended to backup your DHCP servers.

With this, you will be able to restore your DHCP configuration such as DHCP Scopes, DHCP reservations, DHCP options, etc. quickly.

The system administrator set-up a DHCP Server and configure the DHCP Server and create DHCP scopes with the options that are parsed out to the client. The DHCP server provides the client with at least this basic information:

  • IP Address
  • Subnet Mask
  • Default Gateway and other parameters such as Domain Name Service (DNS) server addresses.

Step A: For the steps below to backup a DHCP server

Furthermore, I do not have an external location but will simulate this by creating a folder on the DHCP server and using Robocopy to move the files to an external location.

Launch the DHCP Manager as shown below

restore DHCP Server

This will open the DHCP Console as shown below

DHCP Manager

However, Here, right-click the DHCP Server, and click on Backup as shown below.

PowerShell

Note: By default, Windows will backup the DHCP configuration every 60 minutes at this location %SystemRoot%System32\DHCP\backup.But this will it will do you no good if the server crashes because you will not be able to access the file system on the server.

Therefore, it is recommended to either change the location to a network share or on dedicated storage.

Also, ensure to schedule a task to copy the backup folder to another location. Next, this will open the “Browse For Folders” window as shown below.

But I will select the folder I created (You can select a network path here as well).

restore DHCP Server
Screenshot 2020 06 06 at 19.27.38
backup Windows DHCP Server
Screenshot 2020 06 06 at 19.28.22

Note: Nonetheless, There is no confirmation that the backup was completed. Moreover, Navigate to the folder and verify data was backed up.

DHCP Manager

For some other articles I created on DHCP, see the following links
– For DHCP specific reference console icons
– Information on BOOTP Vendor Extensions and DHCP Options
– For your domain isn’t available – Why Can’t I Connect with a 169.254 IP Address?

Restore the DHCP Server

Step B: Similarly, To restore the DHCP Server. Let us assume there was a crash. Below are the steps to perform this.

Open The DHCP Console and click on Restore

Screenshot of a DHCP management interface showing a menu with options including 'Backup' and 'Restore.'

Next, this will open the “Browse For Folders” window as shown below. Select the folder where the backup file is stored as shown below

A file explorer window prompting the user to select a folder for DHCP server backup files, with the 'DHCP backup' folder highlighted and an 'OK' button at the bottom.

Next you will get a prompt stating in order for changes to take effect, services must be stopped and restarted. Click on Yes

DHCP confirmation dialog box prompting to restart the service for changes to take effect, with 'Yes' and 'No' buttons.

The image below shows the services being stopped and started.

Pop-up notification for starting the DHCP Server service with a loading clock icon.

When the above steps completes successfully, the following DHCP message will be dispalyed.

A pop-up window displaying a warning message from DHCP stating 'The database was restored successfully' with an 'OK' button.

As you can see, my reservations, scopes etc are still intact because they were successfully restored.

Screenshot of a DHCP management console displaying IP address reservations, address pool, and scope options for a local network.

PowerShell – DHCP Backup (backup and restore a Windows DHCP Server)


– Use the following command to backup the DHCP configuration using PowerShell.

Backup-DhcpServer -path C:\Users\Administrator\Desktop\DHCP backup

If you want to backup the DHCP server from a remote computer use this command

Backup-DhcpServer -ComputerName "techdirectarchiveMain" -Path "Backup-DhcpServer -path C:\Users\Administrator\Desktop\DHCP backup"

PowerShell – DHCP Restore

Run the below command below with the server name you wish to restore the backup to. Also, enter the path where the backup will be pulled from.

PS C:> Restore-DhcpServer -ComputerName "techdirectarchiveStandly" -Path "C:\Users\Administrator\Desktop\DHCP backup"

I hope you found this blog post on backup and restore a Windows DHCP Server helpful. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows Server Tags:Backup Database, DHCP, DHCP Server, Dynamic Host Configuration Protocol

Post navigation

Previous Post: In-place upgrade for Windows Server 2012 to Windows Server 2019
Next Post: How to perform sysprep in Windows

Related Posts

  • hero activedirectory 1
    Active Directory Contact and a User Account Object Differences Security | Vulnerability Scans and Assessment
  • Screenshot 2020 08 28 at 12.51.10
    The service could not be started either because it is disabled or because it has no enabled devices associated with it Windows Server
  • install ssl certificate
    Configure SSL connection for WSUS Upstream and Downstream Servers Windows Server
  • Add additional Windows drives
    How to Add Another Hard Drive to a Virtual Machine in HyperV  Virtualization
  • Remote Desktop Connection
    Connect to the Remote Desktop Console from Command Prompt Windows
  • image
    How to find Computer Serial Number stated change to be filled by OEM Windows Server

More Related Articles

Slide1 4 How to create and configure a Shared Folder on Windows Server Windows Server
dc Fix MDT accidental OS deletion Windows Server
Active Directory Security Hardening with GPO and Policy Analyzer Harden Active Directory Using CIS Benchmark and MSCT 1.0 Windows Server
WDSMDT What are the differences between MDT and WDS Windows Server
Implementing DHCP Server Comprehensive Guide to Install DHCP Server on Windows Server Windows Server
logon Configure logon hours for users in Active Directory Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • firewall windows 1
    Periodic Scanning: How to schedule Windows Defender Antivirus to scan on Windows Windows
  • dns records
    What are the different types of DNS Records Windows Server
  • VLC Media Player pcgh b2article artwork
    How to Set Quicktime or VLC as a default player on macOS Mac
  • esd convert wim 1280x720 1
    Differences between Capture image, Discover image, Install and Boot images Windows Server
  • image 190
    Creating Profiles for your AWS Access Credentials for AWS Toolkit in Visual Studio AWS/Azure/OpenShift
  • Upgrade for Veeam ONE
    How to upgrade Veeam ONE to v12.1 Backup
  • win10 usb
    How to prevent installation of removable devices Windows
  • IIS Installed
    Add and remove IIS Web Server on Windows Server 2019 via the Server Manager and PowerShell Web Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,745 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.