<p><a href="http://wincert.net/wp-content/uploads/2015/01/networking.jpg"><img class="alignnone size-full wp-image-562" src="http://wincert.net/wp-content/uploads/2015/01/networking.jpg" alt="networking box" width="720" height="340" /></a></p>
<p>Changing TCP/IP settings using the GUI property is fairly simple. If you have to change IP address settings using CMD to automate the process, here&#8217;s how to do it:</p>
<p>To change an IP address and DNS server setting using the built-in utility in Windows called <strong>“Netsh”</strong>Â we&#8217;ll do the following:</p>
<p>Run Netsh click on start then RUN and type CMD press ENTER.</p>
<p>When the command prompt comes up type <strong>Netsh</strong>, now you should be ready to execute commands. For a start, type “<strong>interface ip show config</strong>“Â that will show up the TCP/IP network settings.<!--more--></p>
<p>To change the Local Area Connection TCP/IP settings including an IP address, subnet mask and default gateway, type the following command:</p>
<p><strong>interface ip set address name=”Local Area Connection” static 192.168.10.42 255.255.255.0 192.168.1.1</strong></p>
<p>As you can see, we changed the network properties for “<strong>Local Area Connection</strong>”Â.</p>
<p>Changing the DNS IP address is almost identical as the procedure above, type the following command on the Netsh prompt:</p>
<p><strong>interface ip set dns “Local Area Connection” static 192.168.1.1</strong></p>
<p>To setup a secondary DNS type the following:</p>
<p><strong>interface ip add dns &#8220;Local Area Connection&#8221; 192.168.1.2</strong></p>
<p>To Setup WINS, type the following command:</p>
<p><strong>interface ip set wins “Local Area Connection” static 192.168.1.1</strong></p>
<p>To set the network properties to obtain the IP address from a DHCP server, type the following command:</p>
<p><strong>interface ip set address “Local Area Connection” dhcp</strong></p>
<p>To set DNS to obtain IP address automatically type the following:</p>
<p><strong>netsh interface ip set dns “Local Area Connection” dhcp</strong></p>
<p>If you want to use the batch script to automate this process you can do the following:</p>
<p><strong>netsh int ip set address &#8220;Local Area Connection&#8221; static 192.168.0.10 255.255.255.0 192.168.0.1 1</strong></p>