Skip to content


Windows 2000 Netshell(netsh)

You can use the windows 2000 Netshell (netsh) command to do some neatly things, including switching your machine between two different networks configurations.

As I said, if you move your machine around a lot, you know the pain of having to reconfigure the network settings (ip address, subnetmask, default gateway and dhcp etc..) so they can continue to talk on the network.

Otherwise, if you have a laptop that you need to use at work, at home, and at hotspot or wherever you want, being able to save and reload network configurations would be a real timesaver.

Hold on a sec! There are a few utilities on the market that allow you to quickly switch between different network configurations. Net Switcher (http://www.netswitcher.com) is one effective tool.

But did you know you can do the same thing using the Widows 2000 Netshell (netsh) command? Here’s how it works. First, you dump your network settings to a text file through the command line, as follows:

netsh -c interface dump > Networksettings.txt (or whatever name you want!). This command stores your current network settings in a text file named networksettings.txt.

Now, let’s say you have to reconfigure your machine’s network settings to repurpose the machine or move it to a different part of the network (maybe your work, or school..). Then, later, if you need to restore your machine’s original network settings, you can simply type the following command adn load back in the previously dumped settings:

netsh -f Networksettings.txt

***Note that the destination filename is not important, so you can effectively create multiple configuration files. You can create and name for each network configuration you need. For example,you can use work.txt for the office,  Home.txt for your home configuration.

Nice work eh?

Tagged with , .


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. anonymous says

    very handy one. so i can use that command in xp and vista?



Some HTML is OK

or, reply to this post via trackback.