Set IP Address via Script


Set a Static IP Address

  netsh int ip set address name="Local Area Connection" source=static addr=192.168.1.2 mask=255.255.255.0
  netsh int ip set address name="Local Area Connection" source=static gateway=192.168.1.1 gwmetric=1 
  netsh int ip set dns name="Local Area Connection" source=static addr=4.2.2.2 


Enable DHCP

  netsh int ip set address name="Local Area Connection" source=dhcp 
  netsh int ip set dns name="Local Area Connection" source=dhcp 

 

Resources

If you have to change your network settings often, you may want try NetSetMan (http://netsetman.com/ )

Or, create your own batch files:

http://www.windowsitpro.com/Windows/Article/ArticleID/20278/20278.html
http://www.experts-exchange.com/Networking/Microsoft_Network/Q_21639432.html

 

Request for Information

Please use the feedback form to send me URL's or details on how to do any of the following:

 

 


[ Top ] [ Home ]

 

 

All items Copyright ©1996 - 2017 Chin. All Rights reserved Reproduction without explicit permission is prohibited. See: Terms of use