Community Area

Use netsh to configure your laptop's nic for different networks

by
Wayne Maples
[Published on 20 April 2004 / Last Updated on 20 April 2004]

If you need to plug your laptop into different networks, you can save and
restore the appropriate network configuration using the netsh.exe utility which ships with W2K and XP. When you have
your laptop correctly configured for your office network, you can save the
network configuration for later restoration.

netsh -c interface dump > c:\configs\officeinterface.txt

Now lets say you take it home and reconfigure it correctly for you home
network. To save you home network configuration for later use:

netsh -c interface dump > c:\configs\homeinterface.txt

OK. Now you take the laptop back to the office and you need to reconfigure
for the office environment: nic address, wins, gateway address... Use the
following command to restore your office network interface:

netsh -f c:\configs\officeinterface.txt

At end of day, you take it home. To setup for home, run:

netsh -f c:\configs\homeinterface.txt

As you can imagine, this is very valuable if you have get your laptop to
function in multiple network locations.

Preserving server hardware (Part 3)

This article examines some of the causes of and effects from overheating for business server systems, PCs, and laptops... Read More

Building a PowerShell GUI (Part 11)

I have two goals for this article. My primary goal is to modify the code we've created so far so that it displays some basic configuration information for the selected virtual machine. My secondary goal is to show you a couple of new techniques for displaying the script’s output... Read More