Forum Discussion
charlie4872
Dec 14, 2022Brass Contributor
Move single DHCP scope from one DHCP server to another
Hello I am trying to get a single DHCP scope moved from one DHCP server to another. I am moving DHCP servers with multiple scopes to new servers and the commands I am running now, will export ALL scopes on the server to and .xml file then imported on the new server and this works fine but I have another server with multiple scopes but want to selectively export specific scope(s) only. The commands I am running now are....
To Export.
Export-DhcpServer -ComputerName "DHCPSERVERNAME" -Leases -File "C:\temp\DHCP-EXPORT.xml"
To Import.
Import-DhcpServer -Leases –File "C:\Users\admin\Desktop\DHCP-EXPORT.xml" -BackupPath "C:\Users\admin\Desktop\Backup" –Verbose
- RGijsbersRademakersIron ContributorHi Charlie, you can create a failover relationship for the specific scope. Once the scope is synchronised to the new dhcp server, you can break the relationship on the new server which removes the scope from the source server.
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn338983(v=ws.11)
Grtz, Ruud