question

RonDefino-4484 avatar image
0 Votes"
RonDefino-4484 asked RonDefino-4484 action

What command to use to back DHCP scopes with manually created options

I need to migrate our DHCP scopes from a 2012R2 to 2016. But we have a lot of manually created scope options that need to also get migrated . What command is best to use?

Export-DhcpServer –ComputerName OLDSERVER -Leases -File c:\dhcpexport.xml -verbose

or

netsh dhcp server dump > dhcp01.txt

thanks

windows-dhcp-dnswindows-server-migration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CandyLuo-MSFT avatar image
0 Votes"
CandyLuo-MSFT answered

Hi ,

I would prefer to use Export-DhcpServer command to do migration.

The export command should like below:

 Export-DhcpServer -File C:\DHCPdata.xml -Leases -Force -ComputerName old.network.local –Verbose

The Import command should like below:

 Import-DhcpServer -File C:\DHCPdata.xml -BackupPath C:\DHCP\ -Leases -ScopeOverwrite -Force -ComputerName new.network.local –Verbose


Then verify your DHCP scope, IP leases, scope options etc on DHCP server 2016 and they should match with DHCP Server 2012 R2.

Best Regards,

Candy


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.