Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » How to backup and restore a Windows DHCP Server via the DHCP Manager and PowerShell

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

Posted on 06/06/202012/09/2023 Christian By Christian No Comments on 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. 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?

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

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

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

The image below shows the services being stopped and started.

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

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

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.

Rate this post

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
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
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

  • system
    How to fix the system cannot find the file specified when adding LP, LIP, and FoD packages to Windows Images Windows Server
  • update
    Client Visibility Issues: Fix WSUS Clients appear then disappear in the console Windows Server
  • Error 1069 Windows could not start
    Fix Error 1069: Windows could not start the Veeam backup service on local computer Backup
  • Screenshot 2022 04 27 at 17.51.48
    Remote Desktop Services Setup on Windows Server Windows Server
  • erroradkupdate
    An error has occurred in the script on this page: HTA applications report a Script error after upgrading to ADK for Windows 11, version 22H2 Windows Server
  • Screenshot 2021 04 08 at 01.11.20
    How to export a certificate in PFX format in Windows Windows Server

More Related Articles

system How to fix the system cannot find the file specified when adding LP, LIP, and FoD packages to Windows Images Windows Server
update Client Visibility Issues: Fix WSUS Clients appear then disappear in the console Windows Server
Error 1069 Windows could not start Fix Error 1069: Windows could not start the Veeam backup service on local computer Backup
Screenshot 2022 04 27 at 17.51.48 Remote Desktop Services Setup on Windows Server Windows Server
erroradkupdate An error has occurred in the script on this page: HTA applications report a Script error after upgrading to ADK for Windows 11, version 22H2 Windows Server
Screenshot 2021 04 08 at 01.11.20 How to export a certificate in PFX format in Windows Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • sql 1
    Editions of MSSQL Server: What are the differences between various Editions of Microsoft SQL Server Oracle/MSSQL/MySQL
  • SQL
    How to install Microsoft SQL Server Management Studio Oracle/MSSQL/MySQL
  • GitLab 1
    How to Setup GitLab Runner on WSL Linux
  • hero windowsadmincenter
    How to schedule and run update via Windows Admin Center Windows Server
  • Continuous Deployment Pipeline Using AWS CodePipeline
    Setup a Continuous Deployment Pipeline with AWS CodePipeline AWS/Azure/OpenShift
  • maxresdefault 2
    How to uninstall Applications with PowerShell Script Scripts
  • Backup for Microsoft 365 and Azure
    Veeam Backup Deployment options for Microsoft 365 Data AWS/Azure/OpenShift
  • Always on and Veeam plugin setup
    Install SQL Server Always On & Configure Veeam Plug‑in for SQL Backup

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2025 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.