DHCP Configuration, Single Scope Backup from windows server 2012r 2 to 2016

1. Export and Import DHCP Single Scope from one Server to another also overwrite the Scope

Open PowerShell with administrative privilege and run below command  

Export-DhcpServer -ComputerName "" -File "C:\temp\dhcpexport1.xml" -ScopeId –Leases DHCP Server Name Scope ID

Now move the dhcpexport1.xml file to destination machine

And run below command to import the Scope in another server.

Import-DhcpServer -ComputerName "" -File "C:\temp\dhcpexport1.xml" -ScopeId -Leases

Type 1 in BackupPath

To overwrite backup on existing scope run below command

Import-DhcpServer -ComputerName "" -File "C:\temp\dhcpexport1.xml" -ScopeId -Leases -ScopeOverwrite –Force

No comments:

Post a Comment

Featured Post

HPE MSA 2040 configuration step by step

HPE MSA 2040 configuration Default IP range for HP SAN storage MSA 2040 is You need to connect your laptop and storage with...