Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration. 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. Type the following command in a Command Prompt window (CMD.EXE): 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.1, the subnet mask of 255.255.255.0, and a default gateway of 192.168.0.254: Other TCP/IP settings:

  • For mobile computers needing static IP settings depending on the network. First, configure the static IP address and other settings for the first network. Use the following command: Set up the settings for the second Network using the command above. To quickly set up your computer at any network location, open a command prompt and type the following command: Or netsh -f c:Network2.txt O use these commands: To configure your adapter back to DHCP, use the following command: