Danny Moran

How to migrate Windows Server DHCP to another Windows Server

Published February 18, 2023 by Danny Moran

Table of Contents
PAGE CONTENT

Introduction

Learn how to migrate your DHCP role from one Windows Server to another Windows Server. In this example, I show you how to use PowerShell to export your DHCP server configuration and then import it into the new DHCP server.

How to migrate Windows Server DHCP to another Windows Server video

How to migrate Windows Server DHCP to another Windows Server

To export your DHCP server configuration, run the following command on the server which currently runs your DHCP role:

Export-DhcpServer -ComputerName "old-dhcpserver.domain.local" -File "C:\exportdir\dhcpexport.xml" -Leases

To import your DHCP server configuration, run the following command on your new DHCP server:

Import-DhcpServer -ComputerName "new-dhcpserver.domain.local" -File "C:\exportdir\dhcpexport.xml" -Leases