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 "192.168.0.16" -File "C:\temp\dhcpexport1.xml" -ScopeId 192.168.1.0 –Leases
192.168.0.16 DHCP Server Name
192.168.1.0 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 "192.168.0.16" -File "C:\temp\dhcpexport1.xml" -ScopeId 192.168.1.0 -Leases
Type 1 in BackupPath
To overwrite backup on existing scope run below command
Import-DhcpServer -ComputerName "192.168.0.16" -File "C:\temp\dhcpexport1.xml" -ScopeId 192.168.1.0 -Leases -ScopeOverwrite –Force
No comments:
Post a Comment