Hi all,
Not sure if this is possible from my reading but hoping it is...Here is the situation I am looking to consolidate a number of DHCP servers to a central 2012 failover pair. As part of this migration I am also going to be changing the DNS options on every scope (couple of hundred scopes) from the exising DNS servers to a new set.
My thinking is to:
- export the scopes now prior to the actual migration (using netsh on the 2003 DHCP servers),
- import them into a single 2012 DHCP server (using netsh on the 2012 DHCP server)
- use the export-dhcpserver powershell command to export the config to xml (for editing the DNS servers)
- find and replace all of the old DNS option 6 entries with new DNS server IPs - save the new xml file
- clear the DHCP scopes (Get-DhcpServerV4Scope | Where-Object –FilterScript { $_.State -Eq "active" } | Remove-DhcpServerv4Scope -Force -Passthru)
- REPEAT FOR EACH LEGACY DHCP SERVER (x8)
- Import the new xml configs (using import-dhcpserver, not allowing existing scopes to be overwritten)
At this point i will have all scopes imported to the new 2012 server with the new DNS settings and I can then configure a load balanced failover pair....
My question is - now that I have prestaged all of the scopes, come the actual migration all I really need to move across are the existing leases - is it possible to just import the leases from the XML file? I realise I may need a third DHCP server to generate the XML files but that is fine I can just spin up a VM....
Thanks All!!!