Configure TCP/IP from Command Prompt

Posted on

Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh.exe also provides a scripting feature that allows you to run a group of commands in batch mode against a specified computer. Netsh.exe can also save a configuration script in a text file for archival purposes or to help you configure other servers.

Netsh.exe is available on Windows 2000, Windows XP and Windows Server 2003.


  • To view your TCP/IP settings:  netsh interface ip show config

  • To export your current IP settings: netsh -c interface dump > c:\location1.txt

  • To import your IP settings:  netsh -f c:\location1.txt

  • To reserve TCP/IP Address: netsh dhcp server scope add reservdip 0004764527a8

  • To configure DNS addresses: netsh interface ip set dns “Local Area Connection” static

  • To configure WINS addresses: netsh interface ip set wins “Local Area Connection” static


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s