Here's how to get your DHCP data and config from one server to another.
Disclaimer: These commands have not been
tested in all environments or implementations. They may contain typos
or errors. Updates not guaranteed so some commands may be deprecated.
If you need more detailed instructions, you probably shouldn't be
attempting this. Edit closely and use at your own peril.
Steps:
- Log on to the existing DHCP server.
- Open an elevated command prompt
- On the Action menu (from within the DHCP management console), click Backup.
- Type netsh dhcp server export C:\dhcpTemp\dhcp.txt all, and then press ENTER.
- Install the DHCP role on the new DHCP server using Server Manager.
- Copy the exported DHCP text file to the new DHCP server.
- Verify that the DHCP service is installed and started on the new DHCP server.
- On the new server, open an elevated command prompt
- Type netsh dhcp server import C:\dhcpTemp\dhcp.txt all, and then press ENTER
- Open DHCP management console on the new server.
- In the console tree, right-click DHCP, click Authorize.
Other Commands:
Export-dhcpserver –computername WPDDC1 –leases –file C:\dhcpTemp\dc1dhcp.xml –ver
Import-dhcpserver –computername WPDDC2 –leases –file C:\dhcpTemp\dc1dhcp.xml –backuppath C:\DHCPBU\Backup -ver
Comments
Post a Comment
Thanks for your input!