Table of Contents

Save and Restore Your Network Config

Intro

I hate windows GUIs. They are a pain in the ass to get to and use half the time. I really don't want to have to click through 10 windows just to get to one simple configuration that I want to change. Case in point, Windows networking configs. Fortunately, there is a way to dump and restore the network configuration quite easily. Here we go.

Dumping the Current Config

First, open up a command prompt by clicking on Start → Run. Type cmd in the box and press Enter or click OK. You should get a command window with a prompt to the effect of:

C:\Documents and Settings\jay>

Obviously, your username will be different. Now, type the following at the command prompt:

C:\Documents and Settings\jay> netsh -c interface dump > mylocation.txt

This will dump your network config into the text file mylocation.txt. Go ahead and change your networking config to accomodate other locations and save them to different files and you will be all set up for easy restore.

And on to restoring the config

Restoring a Config

Now that you have a config saved, I will use the file from the above example to demonstrate a restore.

At the command prompt (see above if you need instructions for this), type the following:

C:\Documents and Settings\jay> netsh -f mylocation.txt

Assuming the file mylocation.txt exists from your previous dump, this should restore your network config from that file. And now, on to the internets…

~~DISCUSSION~~