Search This Blog

Wednesday, 13 October 2010

Quickly Export and Import DHCP Reservations Windows 2008, Winows 2003

This simple process describes the how to migrate a DHCP reservation list without having to migrate the entire scope.


  1. Export the DHCP reservations, from the Old server which is to be migrated using netsh:

            netsh dhcp server [ip address] scope [scope address] dump>c:\temp\reservations.txt
    e.g. netsh dhcp server 172.20.2.33 scope 172.16.0.0 dump>c:\temp\reservations.txt

  2.  Edit the exported file in notepad 'reservations.txt' , Simply do a Find and Replace for the old DHCP server IP you ran the export on and change to the New DHCP server IP you are importing to and remove out everything else in the text file except for the reservations config section.

  3.  On the New DHCP server, make sure you create the new scope first, and ten just simply run the  following command:
           netsh exec C:\temp\reservations.txt

Done

12 comments:

  1. Great, this save my live.

    thx

    ReplyDelete
  2. Thank You, greatly appreciated.

    ReplyDelete
  3. Just two words ... thank you !

    ReplyDelete
  4. Excelente aporte, eficiente y sencillo

    ReplyDelete
  5. Great Job, thanks!
    Jens from Germany

    ReplyDelete
  6. Great tip - just wanted to note that this needs to be done from an elevated command prompt in 2008+. Otherwise you get the message "The command needs a valid Scope IP Address". Thanks.

    ReplyDelete
  7. thank you so much ;)

    ReplyDelete
  8. Thanks for that tip.

    ReplyDelete
  9. Thanks worked great, you saved my day ;-)

    ReplyDelete
  10. works great Thanks

    ReplyDelete
  11. Thanks! works great

    ReplyDelete