I want to know how I can SUCCESSFULLY export and import a single DHCP scope from a server that has multiple scopes. Now if anyone is going to tell me to use:
- netsh dhcp server export C:\dhcp 10.0.0.0 20.0.0.0
- netsh dhcp server import C:\dhcp 10.0.0.0 20.0.0.0
I want to know if anyone has successfully gotten this to work. I have a server with 20 scopes and i want to export only ONE scope from that server so that I can import it into another server that will only service that one subnet.
Here is what I've tried and each one of these has failed. The result of each command is that the entire DHCP configuration (all scopes) are exported and imported into the new server.
- netsh dhcp server export
- netsh dhcp server export C:\dhcp
- netsh dhcp server export C:\dhcp 192.168.20.0
- netsh dhcp server export C:\dhcp "192.168.20.0"
- netsh dhcp server export C:\dhcp thissucks(I was frustrated and used a more colorful word)
- netsh dhcp server import C:\dhcp
- netsh dhcp server import C:\dhcp 192.168.20.0
- netsh dhcp server import C:\dhcp "192.168.20.0"
I have even tried substituting the IP address for the text name of the scope. No matter which export option I use the entire scope is exported. The whole scope is 63k when I use thenetsh dhcp server export C:\dhcp all command. When I attempt to export a single scope the file is still 63k. Just for fun i tried importing it by using all of the import commands listed above and every time it is the entire scope that is imported.
Please, before responding with links to the MS site for the "netsh" command and telling me to use the first two commands, know that I have already tried these.
Can anyone confirm that the example given by MS actually exports only the specified scope from a server that has multiple scopes?
I have attempted this from Windows Server 2008 and 2008 R2.