To switch the specified adapter from a static address to DHCP, type the following command: netsh interface ip set address "Local Area Connection" dhcp NOTE: Typing this command changes the interface named "Local Area Connection" to DHCP. To display all of the adapters in the computer with their current IP addresses to determine the correct adapter name, type the following command: Netsh interface ip show config To change to a static address, type the following command: netsh interface ip set address "Local Area Connection" static ipaddr subnetmask gateway metric NOTE: Replace ipaddr with the static IP address, subnetmask with the subnet mask, gateway with the default gateway and, if necessary, metric with the appropriate metric. The following example changes the interface "Local Area Connection" to a static address of 192.168.0.10 with a subnet mask of 255.255.255.0, and the interface has a default gateway of 192.168.0.1 with a metric of 1: netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1 To set a static address of 192.168.1.105 and a subnet mask of 255.255.255.0 with NETSH, you would issue the following command: netsh int ip set address name=”Local Area Connection” source=static addr=192.168.1.105 mask=255.255.255.0 Of course, you’ll need to add the name of your connection in the name field (ipconfig /all provides the details). Quotes are necessary when the name includes spaces. If the command completes successfully, you’ll be presented with one very simple message – OK. To change your default gateway address to 192.168.1.1, issue the following command: netsh int ip set address name=”Local Area Connection” source=static gateway=192.168.1.1 gwmetric=1 To switch your DNS server address to 192.168.1.100, the command would be: netsh int ip set dns name=”Local Area Connection” source=static addr=192.168.1.1 To switch these same elements back to using DHCP instead, the commands would be: netshint ip set address name=”Local Area Connection” source=dhcp netshint ip set dns name=”Local Area Connection” source=dhcp To automate the process of changing your addresses, fire up Notepad, create a Netsh command script for each network, and then save the resulting files to your desktop with .VBS extensions. Create one for home, another for work, or as many as you need for the various networks you connect to. If you need to change your TCP/IP settings manually, this is a huge time saver. For more details on the NETSH command and its options, type netshint ip set address and press Enter. Written by Dan DiNicolo - Visit Website