Export-DhcpServer -ComputerName "oldDhcp.contoso.com" -Leases -File "C:\DHCP\OldDHCPConf.xml" –Verbose
DHCP
- Log on to the 2008 DHCP server.
- Open a command prompt as Administrator.
- On the Action menu (from within the DHCP management console), click “Backup”.
- Type netsh dhcp server export C:\temp\dhcp.txt all, and then press ENTER.
- Copy the exported DHCP text file to C:\tempof the new DHCP server.
- Open a command prompt as Administrator (on the 2012/2016)
- Type netsh dhcp server import C:\temp\dhcp.txt all, and then press ENTER
- Open DHCP console on the 2012/2016), in the console tree, right-click DHCP and Select “Authorize”.
Install-WindowsFeature -Name DHCP -IncludeManagementTools