导出命令:

netsh dhcp server 192.168.0.1 scope 192.168.0.0 dump > d:\dhcp.txt

打开导出的dhcp.txt文件,可以看到保留的IP地址和不分配的IP,将其他信息删除

导入

netsh -f d:\dhcp.txt