[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 970
  • Last Modified:

Windows Server DHCP Backup and Restore

I currently have a Server 2008 R2 DHCP server that I am about to decommission.  I am installing a new Server 2012 R2 box that will be th new DHCP server.  I would like to run a DHCP Backup on the 2008 server and restore it to the 2012 server so I do not have to reconfigure all the leases, scopes, etc.......

Is that possible, and/or recommended?
0
BSModlin
Asked:
BSModlin
  • 2
  • 2
  • 2
1 Solution
 
Seth SimmonsSr. Systems AdministratorCommented:
yes you can migrate your dhcp configuration

DHCP PowerShell Export Import cmdlets in Windows Server 2012
http://blogs.technet.com/b/teamdhcp/archive/2012/12/03/dhcp-powershell-export-import-cmdlets-in-windows-server-2012.aspx
0
 
BSModlinAuthor Commented:
Can it be done in the GUI... running a backup on the 2008 server and then taking that backup and restoring on the 2012?

I am not very familiar with the shell.....
0
 
IvanSystem EngineerCommented:
Hi,

You should use shell to export/import dhcp, as Seth said.

Regards,
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
BSModlinAuthor Commented:
Can you provide an example of the backup and restore commands...
0
 
IvanSystem EngineerCommented:
Hi,

To export DHCP on Windows 2008, from CMD:  netsh dhcp server export c:\dhcp.txt all (change location where .txt will be saved).
To import DHCP on 2012, AFTER you have installed DHCP role: netsh dhcp server import c:\dhcp.txt all

BEFORE you import, go to DHCP console, and if there are some settings in Server Options, delete them, and then import.
After import, change settings like DNS or what ever you need, if any.

Regards,
1
 
Seth SimmonsSr. Systems AdministratorCommented:
there are command examples in the article i posted
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now