Saturday, March 2, 2013

Exporting information from a Windows 2008 R2 DHCP server

Information such as existing scopes can be exported from a Windows 2008 R2 DHCP server by using the command:

netsh dhcp server export c:\filename.txt all

The data can be imported back in using the netsh dhcp server import command.  The problem with the output of the command above is the information cannot be easily read.  The command below will export the DHCP data in a readable format, but cannot be used to import the information back in.

netsh dhcp server dump all > c:\filename.txt

No comments:

Post a Comment