Home Disaster Recovery How to Easily Take DHCP Server Backup with Command or Console?

How to Easily Take DHCP Server Backup with Command or Console?

2023-04-17 | Nick Zhao

Table of contents
  • What is DHCP server?
  • How to backup and restore DHCP server in DHCP console?
  • How to backup and restore DHCP server using PowerShell command?
  • How to export and import DHCP server scope with Netsh?
  • How to backup and restore DHCP server with Vinchin Backup & Recovery?
  • Sum Up

Are you looking for a robust server backup solution? Try Vinchin Backup & Recovery!

Company needs DHCP server for network connection of multiple machines. You can see how it works and the ways to backup it.

What is DHCP server?

DHCP, Dynamic Host Configuration Protocol, is a powerful protocol to distribute IP addresses to clients when they are connected to the network. It supports C/S structure, mainly consisting of two parts, clients and server. DHCP clients include terminals like PC, and printers and DHCP server manages all the IP information and processes DHCP requests of DHCP clients.

Therefore, you can see that DHCP server is important for the clients to connect to the Internet. To guarantee the network connection, you can backup the DHCP server to recover the configuration from network issue someday rather than manually configure the server again.

DHCP server can be an independent server so you just need to backup the whole server to save the configuration. In fact, more companies choose to install multiple applications including DHCP service at the same. For example, DHCP Server is included in Windows Server 2016 so you can use corresponding commands to export and import the configuration.

If you want a more efficient backup solution, you can also try the automatic backup solution in this post.

P.S. DNS server is also important for network so you can also learn to backup your DNS server.

How to backup and restore DHCP server in DHCP console?

Windows Server operating system knows the importance of DHCP server configuration, so that it will automatically backup the data to %SystemRoot%System32\DHCP\backup.

Here is a small problem that you should know. If the server file system is not able to access, you still can’t get the backup file to restore data so you should copy the backup file when the DHCP server is running in good condition.

Of course, you can also manually create a backup in DHCP console.

1 Click Start > select Windows Administrative Tools > DHCP

2 Right-click the server name > select Backup > select the folder to save the backup file

After some time, the backup file will be generated in the folder and it is suggested to have a copy of the backup file.

Restore DHCP server in DHCP console

When you need to restore a DHCP server, you need to move the backup file back to %SystemRoot%System32\DHCP\backup > right-click the server in DHCP console > select Restore

How to backup and restore DHCP server using PowerShell command?

You can also backup DHCP configuration with PowerShell command:

Backup-DhcpServer -ComputerName "computer_name" -Path "C:\Windows\system32\dhcp\backup"

-ComputerName could be a DNS name, or IPv4 or IP address. If you just want to backup the local machine, you can omit this part of command.

When you need to restore the DHCP server, use the command below:

Restore-DhcpServer -ComputerName "computer_name" -Path "C:\Windows\system32\dhcp\backup"

How to export and import DHCP server scope with Netsh?

The scope is the IP addresses that you need to distribute to clients and they can be exported and imported by Netsh command.

Export DHCP server scope:

export c:\temp\dhcpdb all

Import DHCP server scope:

import c:\temp\dhcpdb all

How to backup and restore DHCP server with Vinchin Backup & Recovery?

To better protect your server, you can select Vinchin Backup & Recovery, a professional backup solution for both physical and virtual server.

Vinchin Backup & Recovery

Compared with the internal backup solution of Windows server, you can backup your server with more options in Vinchin Backup & Recovery.

You can backup the entire server or only the files or folders on the server with strategies like backup schedule, incremental backup, backup data compression, etc. A user-friendly web console will help you easily complete the procedures.

Vinchin Backup & Recovery has been selected by thousands of companies and you can also start to use this powerful system with a 60-day full-featured free trial. Just click the button to get the installation package.

Sum Up

DHCP server is used to distribute IP addresses to DHCP clients and DHCP servers will not be able to connect to the Internet under a DHCP server failure so you’d better backup DHCP server to have a chance to recover it when necessary.

You can use internal solutions like DHCP console, PowerShell command, and Netsh command to backup and restore DHCP server or better protect your IT environment with Vinchin Backup & Recovery. Don’t miss the free trial.

Share on:

Categories: Disaster Recovery