Import and Export TCP/IP Configuration with Netsh

by Eric Geier [Published on 14 July 2011 / Last Updated on 14 July 2011]

Backup or transfer static IP and DNS address detail using the Network Shell.

The Network Shell (Netsh) utility lets you configure numerous networking settings of Windows, including IP address and DNS details. If you assign static IP or DNS addresses in your network, you might find it useful to export and import your TCP/IP configuration with Netsh.

To dump the TCP/IP configuration:

netsh -c interface dump > PATH_AND_FILENAME.txt

To import the TCP/IP configuration:

netsh -f PATH_AND_FILENAME.txt

Featured Links