Home > Windows Server Tips > Web Management > Netsh.exe offers a unique 'view'
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WEB MANAGEMENT

Netsh.exe offers a unique 'view'


Ron Crumbaker, Contributor
01.24.2005
Rating: -4.32- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Please let us know how useful you find this tip by rating it below!


Do you know what Netsh.exe is capable of doing for you?

One task you can use it for is viewing your TCP/IP settings.

Type the following command in a Command Prompt window (CMD.EXE):
netsh interface ip show config

You can configure your computer's IP address and other TCP/IP related settings. For example, the following command configures the interface named Local Area Connection with the static IP address 192.168.0.100, the subnet mask of 255.255.255.0 and a default gateway of 192.168.0.1:
netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1

(The above line is one long line, so watch for word wrap. Copy and paste it as one line.)

Netsh.exe can also be useful in certain situations when you have a portable computer that needs to be relocated between two or more office locations, while still maintaining a specific and static IP address configuration. With Netsh.exe, you can save and restore the appropriate network configuration all from the command prompt.

Connect your portable computer to location #1, and then manually configure the required network settings.

Now, you need to export your current IP settings to a text file. Use t


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Web Management
Internet Information Services (IIS) sees big changes in Windows Server 2008
How to keep IIS logs from filling up your server hard drives
A first look at Internet Information Services 7.0
When and how to use worker process recycling with IIS
Fix app problems stemming from Firefox as default browser
Control users' Internet access
Raise Web server performance in Windows Server 2003
Remotely administer IIS with HTML tool
INDEX.DAT tool helps admins see what users browsed in IE
Improving Internet browsing performance

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


he following command:
netsh -c interface dump > c:\location1.txt

When you reach location #2, do the same thing, only keep the new settings to a different file:
netsh -c interface dump > c:\location2.txt

You can go on with as many other locations you may need.

Now, whenever you need to travel between locations, you can enter the following command in a Command Prompt window (CMD.EXE):
netsh -f c:\location1.txt or netsh -f c:\location2.txt.

Netsh.exe can also be used to configure your NIC to automatically obtain an IP address from a DHCP server:
netsh interface ip set address "Local Area Connection" dhcp

You can use this command to setup WINS:
netsh interface ip set wins "Local Area Connection" static 192.168.0.200

Or, if you want, you can configure your NIC to dynamically obtain its DNS settings:
netsh interface ip set dns "Local Area Connection" dhcp

As you can see, Netsh.exe is very customizable and useful.


ABOUT THE AUTHOR: Ron is the PC systems administrator at military and government contractor MPD Inc., of Owensboro, KY. He is the administrator for SMS 2.0, SMS 2003, Exchange 2000, Active Directory, Windows 2000 Server and Windows Server 2003, PC desktops, workstations and laptops.

Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts