How to delete all scopes from a DHCP server or synchronize servers in diferent subnets
Posted on 2007-12-05
I am running a network with redundant datacenters. I created a scheduled task to export all dhcp scopes from the primary datacenter to the secondary sites using netsh dhcp server commands. This works great for the initial synchronization, but once the other servers have the bulk of the scopes, further imports fail because the scopes already exist. Is there a way to delete all scopes from a dhcp server with a command line so that the import will succeed? Alternatively, is there a way to force the netsh dhcp server \\xxxx import to overwrite existing scopes?
As a last option, does anyone have a better suggestion for keeping multiple dhcp servers in multiple sites in sync?